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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
sora11
Contributor
Contributor

Exclude weekends and public holiday with many conditions

Hi.

I have max expression with condition of specific time. But I also want to exclude Saturday, Sunday (Weekends)  and public holiday.

I already did this expression

=Max({$<Time = {">$(=('11:00'))<=$(=('12:00'))"},Time = {">$(=('14:00'))<=$(=('17:00'))"},CalendarDayName-={'Sat','Sun'} ,Date#-={'1/1/2017','5/1/2017','8/31/2017','9/16/2017','12/25/2017'}>}[Total kw])

But the result still not exclude Saturday, Sunday and public holiday.

Thanks in advance!

 

 

2 Replies
Channa
Specialist III
Specialist III

it is better to add Flag for Sat,Sun and PublichHolidays as "H"

 

Channa
sora11
Contributor
Contributor
Author

Thank you so much Channa! I got it now Smiley Wink