Calling all Alteryx customers: Refer your colleague to try Alteryx and receive a $50 gift card. Sign up now!

Alteryx Designer Desktop Discussions

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

Find last years date (ISO Standard)

ulysses_no
7 - Meteor

Hi,

I have a calendar table with these columns:
DATE | DAYNAME | DAYINWEEK|ISO WEEKNUM

 

I would like to find last year's data on each DATE row but have not found a way to do it using the ISO standard. 

 

Wanted result:

ulysses_no_0-1641833383555.png

 

9 REPLIES 9
atcodedog05
22 - Nova
22 - Nova

Hi @ulysses_no 

 

Can you provide this in an excel file

atcodedog05
22 - Nova
22 - Nova

Hi @ulysses_no 

 

How is "2020-12-21" last year date "2019-12-23" ? Am I missing something

ulysses_no
7 - Meteor

Hi,

Here it is!

ulysses_no
7 - Meteor

I want to find the same week day in ISO standard. 

 

Meaning Monday week 52 2020-12-21 will be Monday week 52 2019-12-23

atcodedog05
22 - Nova
22 - Nova

Hi @ulysses_no 

 

Here is how you can do it. I was able to take reference from this post and provide a solution to you https://community.alteryx.com/t5/Alteryx-Designer-Discussions/Calculating-Week-Number-using-DateTime... 

Workflow:

atcodedog05_0-1641834913979.png

 

Hope this helps : )

 

binuacs
21 - Polaris

@ulysses_no  Very similar to @atcodedog05  approach

 

binuacs_0-1641835913411.png

 

 

atcodedog05
22 - Nova
22 - Nova

Hi @ulysses_no 

 

Please find the updated workflow I was displaying month name instead of weekday name. Thanks @binuacs for pointing it out ðŸ™‚

 

Workflow:

atcodedog05_0-1641836029117.png

 

Hope this helps : )

ulysses_no
7 - Meteor

@atcodedog05  and @binuacs  thank you for your time and solution, both worked excellently! 

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @ulysses_no 

Cheers and have a nice day!

Labels
Top Solution Authors