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