
Contributor III
2019-03-23
07:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
NetWorkDays function in expression
Hi all,
when i use NetWorkDays function in expression to calculate the difference of working days i always have 1 more.
for exemple in my table here bellow i should have 1 because there is only 1 day between monday and friday (whithout the weekend) and i have 2. That's the same story for all my dates, i have always 1 daye extra.
i don't understand why ?
Thanks for your help
1,740 Views
1 Solution
Accepted Solutions

MVP
2019-03-23
01:49 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
To get your desired no of days you could subtract one day.
=networkdays(start_date, end_date) -1
Read more about the function here: https://help.qlik.com/en-US/sense/November2018/Subsystems/Hub/Content/Sense_Hub/Scripting/DateAndTim...
=networkdays(start_date, end_date) -1
Read more about the function here: https://help.qlik.com/en-US/sense/November2018/Subsystems/Hub/Content/Sense_Hub/Scripting/DateAndTim...
Vegar
Qlik Community MVP
Qlik Community MVP
1,710 Views
2 Replies

MVP
2019-03-23
01:46 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The definition of the networkdays function is as follows:
The networkdays function returns the number of working days (Monday-Friday) between and including start_date and end_date taking into account any optionally listed holiday.
NetWorkdays for Friday-Monday will as designed return 2 days and not 1.
The networkdays function returns the number of working days (Monday-Friday) between and including start_date and end_date taking into account any optionally listed holiday.
NetWorkdays for Friday-Monday will as designed return 2 days and not 1.
Vegar
Qlik Community MVP
Qlik Community MVP
1,715 Views

MVP
2019-03-23
01:49 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
To get your desired no of days you could subtract one day.
=networkdays(start_date, end_date) -1
Read more about the function here: https://help.qlik.com/en-US/sense/November2018/Subsystems/Hub/Content/Sense_Hub/Scripting/DateAndTim...
=networkdays(start_date, end_date) -1
Read more about the function here: https://help.qlik.com/en-US/sense/November2018/Subsystems/Hub/Content/Sense_Hub/Scripting/DateAndTim...
Vegar
Qlik Community MVP
Qlik Community MVP
1,711 Views
