Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
CBoardy
Contributor III
Contributor III

Percent of month passed

Hi All,

I want to calculate the % of the month passed only including working days.

So say its a 20 day working month and its 10 days through the month, Working Days Passed will be 50%. 

How do I create a dynamic expression that changes every day?

How would I also include the Bank Holidays for that month?

Many thanks

Labels (5)
1 Reply
rubenmarin

Hi, with networkdays() function you can count the days from monday to friday between 2 dates, and the last parameter is the holidays to avoid to count them. https://help.qlik.com/en-US/qlikview/May2022/Subsystems/Client/Content/QV_QlikView/Scripting/DateAnd...

As a workaround you can load in script a table related to the YearMonth field that stores the number of total working days each month have, and each date of each month can have stored a value with the number of working days in that month until that date.

Then you can use both precalculated values to obtain the %.