Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
shrijeeb
Contributor II
Contributor II

Exclusion of Public holiday and weekend and create T, T+1,T+2 dates accordingly

Hello all,

I have below dates in calendar:

   
mon27-Apr 
tues28-Apr 
wed29-Apr 
thurs30-Apr 
fri1-MayPublic Holiday
sat2-MaySaturday
sun3-MaySunday
mon4-May 
tues5-May 
wed6-May 
thurs7-May 
fri8-May 
sat9-MayPublic Holiday
sun10-MaySaturday
mon11-MaySunday
tues12-May 
wed13-May 
thurs14-May 
fri15-May 
sat16-May 
sun17-May 

Need to create below format calendar table  on the available working days(excluding Weekends and Public Holiday)with T start, T end , T+1 start, T+1 end, T+2 start and T+2 end date. Where 

 available datesT startT end T+1 startT+1 end T+2 startT+2 end
mon27-Apr25-Apr27-Apr 24-Apr24-Apr 23-Apr23-Apr
tues28-Apr28-Apr28-Apr 27-Apr27-Apr 26-Apr26-Apr
wed29-Apr29-Apr29-Apr 28-Apr28-Apr 27-Apr27-Apr
thurs30-Apr30-Apr30-Apr 29-Apr29-Apr 28-Apr28-Apr
mon4-May1-May4-May 30-Apr30-Apr 29-Apr29-Apr
tues5-May5-May5-May 1-May4-May 30-Apr30-Apr
wed6-May6-May6-May 5-May5-May 1-May4-May
thurs7-May7-May7-May 6-May6-May 5-May5-May
fri8-May8-May8-May 7-May7-May 6-May6-May
tues12-May9-May12-May 8-May8-May 7-May7-May
wed13-May13-May13-May 9-May11-May 8-May8-May
thurs14-May14-May14-May 12-May12-May 9-May11-May
fri15-May15-May15-May 13-May13-May 12-May12-May
mon18-May16-May18-May 14-May14-May 13-May13-May

Need  help to create dates for T start, T end , T+1 start, T+1 end, T+2 start and T+2 end date in the above range format.

Thanks 

3 Replies
Taoufiq_Zarra

can you elaborate

how you calculated for example these lines ?

 

ues5-May5-May5-May 1-May4-May 30-Apr

30-Apr

 

 

 

 

tues12-May9-May12-May 8-May8-May 7-May7-May

 

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
shrijeeb
Contributor II
Contributor II
Author

Whenever there is a public holiday previous to working days, we club them together for creating dates range like:

4th May(Mon) we have 1st May(Fri) as a holiday so our 

T start date -1st May, Tend date- 4th May

for 5th May(Tues) we have 

T start date -5th May, Tend date- 5th May

T+1 start date - 1st May, T+1 end date -4th May (Its the date range of previous working days T start date and T end date).

Hope it is clear.

 

Brett_Bleess
Former Employee
Former Employee

@Taoufiq_Zarra  Just making sure you got notification, as I am guessing you did not on the new post given the issues we have been having.  Only thing of which I can think that may help is the Design Blog area, there are some posts on calendars and stuff out there, but I do not know if anything as specific as what you are trying to do, here is the main link you can use to search there:

https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog

Search on 'calendar' for starters, thinking the 4-4-5 one might be along the lines you are trying to do here, but I am not sure.  

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.