Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

COB date + Holiday Date

AshishAgarwal
8 - Asteroid

Hi Team,

 

I want to get dates for COB  + Holiday dates.

 

I can provide input file with list of Holiday dates.

 

So I want Alteryx to identify COB date and if any previous Holiday date.

 

For example:

Holiday date is

19th Aug 2025

18th Aug 2025

10th Aug 2025

 

 

If COB 20th Aug

Then I should get 3 dates 

20th Aug 2025

19th Aug 2025

18th Aug 2025

 

If COB is 21st Aug

Then I should get 3 dates 

21st Aug 2025

 

I dont want to use Python in Alteryx.

 

Hence is it possible to derive such behavior using different tools?

 

Regards,

Ashish

 

4 REPLIES 4
Gaurav_Dhama_
12 - Quasar

can you explain the case of 21st Aug, shouldn't you get 21 and 19th Aug as two dates as 19 was a holiday and it is within 3 days?

ScottLewis
11 - Bolide

Attached solves the problem, there are likely more elegant solutions.

 

Solution takes a COB data as input, generates the 30 days prior, checks which of them are holidays, flags all holidays and the COB as include and then produces the list of includes until the first exclude by way of multi-row formula.

AshishAgarwal
8 - Asteroid

Hi Lewis,

 

Thank you so much. I am now getting desired result.

 

However I missed to inform that I need to skip weekends and hence I just input one tool to exclude weekends.

AshishAgarwal
8 - Asteroid

Hi All,

 

I still faced issue on other holiday dates.

I have tried summarizing an example and require your help.

Is it possible to get desired result?

 

SceanrioHolidayResult
1MondayFriday + Monday
2Monday + TuesdayFriday + Monday + Tuesday 
3FridayThursday + Friday
4Thursday + FridayWednesday + Thursday + Friday
5Monday + Tuesday + WednesdayFriday + Monday + Tuesday + Wednesday
6Wednesday + Thursday + FridayTuesday + Wednesday + Thursday + Friday
7TuesdayMonday + Tuesday
8WednesdayTuesday + Wednesday
9Friday + MondayThursday + Friday + Monday
10SundayFriday
11SaturdayFriday
12Monday & WednesdayTuesday only
13Friday & TuesdayMonday only
Labels
Top Solution Authors