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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to check the number of public holidays days found between 2 dates

Hi

I have 2 dates, date_In and date_Out. I also have a list of bank holidays appended in a list ('holiday1,holiday2,holiday3')

I would like to know if there is a way to calculate in the script how many public holidays there are between date_in and date_out.

Thanks

Hasnaa

13 Replies
Anonymous
Not applicable
Author

The holidays are different for several countries, in this case operator. I even use date in the script but then networkdays does not work at all. It is not excluding holidays . please see image attached

Capture.PNG

Not applicable
Author

hmm, not sure if network days will work for you in that case, with a shifting third parameter like that. Think the only way to use it in your case, would be to loop through each of the operator codes in turn, rather than a full load, that should work for you.

Not applicable
Author

been quite busy, but the attached might help you, not been able to test it, so a bit of blind coding, so forgive the errors!

hope that helps

Joe

Anonymous
Not applicable
Author

Thanks for you help. I will check it