Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Exclude weekend days

Hi all,

For the record below I want to exclude the weekend days.

Customerstart dateend days# days (no weekend days)
a7-1-201414-01-20146

Is the an easy way to solve this issue?

Best regards,

Arjan

Labels (1)
1 Solution

Accepted Solutions
jagan
Partner - Champion III
Partner - Champion III

Hi,

Try NetWorkDay() for this

=NetWorkDays('1/7/2014', '1/14/2014')

Regards,

Jagan.

View solution in original post

5 Replies
jagan
Partner - Champion III
Partner - Champion III

Hi,

Try NetWorkDay() for this

=NetWorkDays('1/7/2014', '1/14/2014')

Regards,

Jagan.

Clever_Anjos
Support
Support

=NetWorkDays(start_date,end_date) will return what you need

sujeetsingh
Master III
Master III

jagan so can you please explain the netWorkDays () function in detail

jagan
Partner - Champion III
Partner - Champion III

Hi Sujeet,

NetWorkdays() will receive Start and End date as parameters and returns the number of days between the two dates excluding Saturdays and Sundays.

Regards,

Jagan.

MK_QSL
MVP
MVP

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