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

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