Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

arjanijlenhave
New Contributor

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

1 Solution

Accepted Solutions
MVP
MVP

Re: Exclude weekend days

Hi,

Try NetWorkDay() for this

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

Regards,

Jagan.

5 Replies
MVP
MVP

Re: Exclude weekend days

Hi,

Try NetWorkDay() for this

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

Regards,

Jagan.

Employee
Employee

Re: Exclude weekend days

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

sujeetsingh
Honored Contributor III

Re: Exclude weekend days

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

MVP
MVP

Re: Exclude weekend days

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.

Re: Exclude weekend days

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

Community Browser