In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

To calculate relative week-numbers

msb007
5 - Atom

Need help from experts. I tried a million ways but its not working.

 

I am trying to create relative week-numbers for 52 rolling weeks. The current week should be week-number "1" and backwards.

 

 

 

Attached image may explain it better.

1 REPLY 1
apathetichell
20 - Arcturus

floor(DATETIMEDIFF(DATETIMETODAY(),[date1],"days")/7)

 

datetimetoday() should be your max date which you get from summarize and append.

 

[date1] is the date of your week which you are looking to compare.

Labels
Top Solution Authors