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

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Number days worked by month

Hello,

I need to get the number of days by month, but I must substract the saturdays and sundays of this number.

Example for November : I must get 22 days.

I don't know how I can do.

thanks for your help.

Labels (1)
5 Replies
Not applicable
Author

You could do something like this...

Weekday(Date) as WeekDay

Count(Weekday)

swuehl
Champion III
Champion III

Do you have a calendar with Date, Month, Year etc.?

Then create a table chart with dimension Month (or YearMonth), and as expression use:

=networkdays(monthstart(Date),monthend(Date))

If you use a Month or YearMonth of date type, you could also use these as field in the above expression.

Hope this helps,

Stefan

Not applicable
Author

no, I have nothing.

I'm in the script, and I need to create 1 variable by month.

var_01_2011 = 20

var_02_2011 = 18

var_03_2011 = xx

var_04_2011 = xx

...

These variables will be used in a mathematics calculs.

Not applicable
Author

Hello Prophete.

Is something like this:

=COUNT(if(Num(WeekDay(DATE_FIELD)) < 5, DATE_FIELD))

Good Luck

Bruno Oliveira

Not applicable
Author

Thanks you.

My problem is solved with the functions :

set X = networkdays(monthstart(Y) , monthend(Y));