NETWORKDAYS function

  • 21 December 2021
  • 0 replies
  • 394 views

Userlevel 5
Badge +3

 

Description

Returns the number of working days between the two given dates. Optionally, user can exclude specific days of the week or holidays.

Note: by default, all days of the week are considered as working days and no holidays are taking into account.

 

Syntax

NETWORKDAYS(Date From, Date To, Working Days, Holidays)
  • Working Days defines which days of the week are working and non working days. User must use a Metric (or property) of the Dimension Day Of Weekboolean

  • Date from defines the first date to start counting from.

  • Date to defines the last date to count up to. 
     

    This date is not included in the count.  

  • Holidays defines which dates are holidays. User must use a Metric (or property) with the Dimension Dayboolean

 

 

 

Return type

Integer

 

Examples

Case

Results

Return Type

NETWORKDAYS(DATE(2020, 12, 2), DATE(2020, 12, 7), DayOfWeek)

3 with DayOfWeek Metric considering Saturday and Sunday as non-working days.

Integer

 

Excel equivalent: NETWORKDAYS

See also: DAYS


This topic has been closed for comments