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

Trying to calculate days since Anniversary

Darth-Accrual
5 - Atom

I have date of hire information and am trying to calculate days since anniversary as of the last day in the year in this case 12/31/2021 (e.g DOH 2007-05-18 would return 228(including doh as an extra day)) I have tried to do DateYimeDiff but am having a hard time changing 2000 to 2020? Any Ideas? 

3 REPLIES 3
JaeLim
Alteryx Alumni (Retired)

Hi @Darth-Accrual,

Similar to what you may have tried to do, I used DatetimeDiff as well but found a way to always obtain the last day of a specific year. 

JaeLim_0-1644529491105.png

 

Hope this helps!

 

Darth-Accrual
5 - Atom

Thats brilliant didn't think about the fact that it doesn't change YoY! Thanks

JaeLim
Alteryx Alumni (Retired)

JaeLim_0-1644530447825.gif

 

Labels
Top Solution Authors