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: 
Not applicable

Net work Days in current month

Hi Guys

I want to count average sales per day. I am counting total sales for the current month by using following expression.

=Count(DISTINCT(if(Month([Completion Date]) = Month(Today()), OrderId)))

How to get number of total working days in present month? to divide with above expression

Thanks

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

May be this:

NetWorkDays(Floor(MonthStart(Today())), Today())

View solution in original post

7 Replies
sunny_talwar
MVP
MVP

May be like this:

NetWorkDays(Floor(MonthStart(Today())), Floor(MonthEnd(Today())))

Not applicable
Author

Thanks Sunny...

Your expression is giving me total as 23

how do I exclude weekends?

thanks

sunny_talwar
MVP
MVP

I think weekends are already excluded here

sunny_talwar
MVP
MVP

I see 23 weekdays in the month of August

Capture.PNG !

Not applicable
Author

Because today is 23 August and if you subtract 6 weekends then it should give you total as 17 !

Not applicable
Author

oh now i got your point lol... i wanted MTD weekedays

sorry for confusion

sunny_talwar
MVP
MVP

May be this:

NetWorkDays(Floor(MonthStart(Today())), Today())