Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask 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