NETWORKDAYS is a DAX function that returns the number of whole workdays between two dates, excluding weekends and specified holidays.
Syntax
NETWORKDAYS(
start_date,
end_date,
weekend,
holidays
)
Argument | Properties | Description |
---|---|---|
start_date | A date that represents the start date. | |
end_date | A date that represents the end date. | |
weekend | Optional | Indicates the days of the week that are weekend days and are not included in the number of whole working days between start_date and end_date. Weekend is a weekend number that specifies when weekends occur. Weekend number values indicate the following weekend days: 1 or omitted: Saturday, Sunday; 2: Sunday, Monday; 3: Monday, Tuesday; 4: Tuesday, Wednesday; 5; Wednesday, Thursday; 6: Thursday, Friday; 7: Friday, Saturday; 11: Sunday only; 12: Monday only; 13: Tuesday only; 14: Wednesday only; 15: Thursday only; 16: Friday only; 17: Saturday only. |
holidays | Optional | A single column table of one or more dates that are to be excluded from the working day calendar. |