Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
EQ
Contributor III
Contributor III

Qlikview calculating two dates TAT only excluding the holidays

Hi QV experts,

I know QlikView has a function NetWorkDays() to calculate two dates, but it will exclude the Sat and Sun. 

What I want to calculate the TAT of two dates only excludes the holidays which loaded from an excel.

Like we have two dates 2018-12-27 and 2019-01-03, meanwhile, 2019-12-31 and 2019-01-01 are holidays, to calculate the TAT, it should return 5 as below.  Would a kind and enlightened please advise on my error, many thanks in advance.

DateActDateSentTAT
2018/12/272019/1/35

 

 

2 Replies
VishalWaghole
Specialist II
Specialist II

Create your holiday mapping with you calendar and assign flag against holiday date.

In set analysis use flag only for working days which will give you saturday and sunday but not holidays.

Thanks,
Vishal Waghole

EQ
Contributor III
Contributor III
Author

Hi Vishal,

Thanks for your response, but I have to calculate the TAT in backend load scripts, could you please let me know if you have any ideas?

Thanks,

Eric