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

Standarizing Date

Lydieatantra
7 - Meteor

Hi Alteryx Team,

 

Im newby in Alteryx, and i would like to create data with logic to standarizing for public holiday transaction to posted in the next buss date. Lets say the public holiday is on the Saturday and Sunday.

Please refer to my data below :

 

Current

Transaction DateTransaction Amount
2020-02-02100
2020-02-02150
2020-02-03200
2020-02-04100

 

Expected

(In here, i need to add the transaction amount posted on Saturday & Sunday into next buss day, which is on Monday)

Transaction DateTransaction AmountDayTran Date_NewTran Amount_Sum
2020-02-02100Sunday2020-02-03450
2020-02-02150Sunday2020-02-03450
2020-02-03200Monday2020-02-03450
2020-02-04100Tuesday2020-02-04100

 

Hopefully i can get the solution.

 

Thank you.

Lydiea

6 REPLIES 6
BradWerner
11 - Bolide

Hi @Lydieatantra!

 

You can use a Formula tool to add two days to Saturdays and one day to Sundays and then a Summarize tool to group by the new date field and summarize transaction amounts (see attached workflow for formulas).

 

Annotation 2020-07-28 222536.png

 

Resulting in these totals:

BradWerner_0-1595993419064.png

BradWerner
11 - Bolide

Also, if you had a dataset of public holidays, you could push transaction amounts to the next business day regardless of whether it is a weekend.

 

Just throwing that out there in case it helps you for other holidays.

 

Take care!

Brad

huynv96
9 - Comet

Hi @Lydieatantra ,

Hope it helps, I attacked the workflow below

image.png

grazitti_sapna
17 - Castor

Hi @Lydieatantra , I hope this helps.

Thanks.

 

grazitti_sapna_0-1595997451905.png

 

Sapna Gupta
Lydieatantra
7 - Meteor

Hi @BradWerner ,

 

Thank you so much for your help, it works perfectly!!

 

Regards,

Lydiea

Lydieatantra
7 - Meteor

Hi @BradWerner ,

 

Ok, noted. I will try it if i have the public holiday list.

 

Thanks a lot for your kind help 🙂

 

Stay healty,

Lydiea

Labels
Top Solution Authors