Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

excluding holidays for count and result in days

hi guys,

PFA Data,

this is regarding the holiday skipping calculation.

conditions:

1.need to skip all weekneeds & public holidays for calculation.

2.14/04/2017 09:35:37 -- is holiday..so need to skip these hours.

3.04/03/2017 23:59:38 -- is holiday..so need to skip these hours.

4.14/04/2017 & 17/04/2017 both are holidays so need to skip these hours.

thanks

5 Replies
vinieme12
Champion III
Champion III

Use NetworkDays()

networkdays - script and chart function ‒ Qlik Sense

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
Not applicable
Author

hi,thanks..as we know net workdays only exclude weekends but in my case need to exclude public holidays(some times those are week days).

by creating a flag for holiday and i tried to exclude all those days but if a ticket is created yesterday and closed today(we can assume today is holiday then i need to consider working hours of yesterday only--this is the major problem)

any help!

el_aprendiz111
Specialist
Specialist

Hi,

1 Example:

SET vDayOthers = '14/04/2017', '06/03/2017';


LOAD TicketNumber,
OpenDate,
OpenDateFraction,
ClosedDate,
ClosedDateFraction,
Holidaycount,
Present_Output,
Expected_Output,
Comments
FROM
Dataissue.xlsx (
ooxml, embedded labels, table is Sheet1)

Where NetWorkDays(ClosedDate, ClosedDate,$(vDayOthers))

;

Not applicable
Author

not helped,

any help guys.

el_aprendiz111
Specialist
Specialist

Hi,

Would you be able to share a sample with the expected output?