We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Date Cal

BRRLL99
11 - Bolide

Hi Team,

 

I have following Dataset

logic for expected output is

IF FILE DATE = DATES then it is Today

file date + 1 (except sun , sat, holidays) = dates then today +1 

as shown in the example 4/26 and 4/30 is considered as today +1 , since 29th is holiday it should consider next working day

 

same logic for T-1 and T-2 also

 

 

File DateDates
4/26/20244/26/2024
4/26/20244/26/2024
4/26/20244/30/2024
4/26/20244/30/2024
4/26/20244/25/2024
4/26/20244/25/2024
4/26/20244/23/2024
4/26/20244/23/2024
4/26/20244/26/2024

 

 

Expected Output:

File DateDatesSummary
4/26/20244/26/2024Today
4/26/20244/26/2024Today
4/26/20244/30/2024Today + 1
4/26/20244/30/2024Today + 1
4/26/20244/25/2024Today - 1
4/26/20244/25/2024Today - 1
4/26/20244/23/2024Today - 2
4/26/20244/23/2024Today - 2
4/26/20244/26/2024Today

 

Holidays
4/29/2024
4/24/2024
1 REPLY 1
ed_hayter
13 - Pulsar

Might be a better way but I went with splitting the flow and generating rows for the missing days then remove holidays and weekends. Consolidate into a single row counting the days and then use the count of days to get the summary column

 

image.png

Labels
Top Solution Authors