Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
qlikuser222
Creator
Creator

Difference between days excluding weekends and holidays?

Hi,

I want to get the difference between start date and end date for a process excluding weekends and holidays.

Can anyone please help me ?

1 Solution

Accepted Solutions
Anonymous
Not applicable

Have al ook at the NetworkDays() function.

Here is the Help entry for it from the QV Desktop Help :

networkdays (start:date, end_date {, holiday})

Returns the number of working days (Monday-Friday) between and including start_date and end_date taking into account any optionally listed holidays. All parameters should be valid dates or timestamps.

Examples:

networkdays ('2007-02-19', '2007-03-01') returns 9 

networkdays ('2006-12-18', '2006-12-31', '2006-12-25', '2006-12-26') returns 8 

View solution in original post

3 Replies
Anonymous
Not applicable

Have al ook at the NetworkDays() function.

Here is the Help entry for it from the QV Desktop Help :

networkdays (start:date, end_date {, holiday})

Returns the number of working days (Monday-Friday) between and including start_date and end_date taking into account any optionally listed holidays. All parameters should be valid dates or timestamps.

Examples:

networkdays ('2007-02-19', '2007-03-01') returns 9 

networkdays ('2006-12-18', '2006-12-31', '2006-12-25', '2006-12-26') returns 8 

Colin-Albert

The networkdays() function will do this. You need to provide the start date, end date and a comma separated list of holiday dates.

You can use the concat() function to generate the comma separated list of holidays in a separate table and then p[eek the result into a variable.