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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
yoganantha321
Creator II
Creator II

current working day count

Hi,

I need a expression how to calculate the working day in month.

Example:

April- 23

May- 3 (as of today three working days)

If I see tomorrow it should display as

April -23

May-4 (if i see tomorrow four working days)

How can I achieve it can any body help me?

regards,

Yoganantha Prakash G P

1 Solution

Accepted Solutions
7 Replies
MindaugasBacius
Partner - Specialist III
Partner - Specialist III

Let's assume you have a flag field like [Working day]:

1. 1 - stands for working day

2. 0 - it 's not a working day

Then try this:

Sum({<Date = {"<=$(=Today())"}>} [Working day])

As dimension use  [Year, month]

sunny_talwar

What defines a workday? Monday to Friday? and do you have a list of holidays you would want to exclude?

yoganantha321
Creator II
Creator II
Author

Monday to Friday only Sunny

swuehl
MVP
MVP

avinashelite

Then use the networkingday() function

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 

yoganantha321
Creator II
Creator II
Author

thanks stefan

shiveshsingh
Master
Master

networkdays(monthstart(today()), today)