Alteryx Designer Desktop Discussions

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

Getting the Week Number of the Date In the Year

MAAbdullahAlMubarah
8 - Asteroid

Dear Experts 

 

Anybody can help me on how to get the week no of the current year (date), Please note that when the current year-end we need to start the new year by week no (1), thank you in advance. 

 

e.g.:

 

Date                                             Week no

2015-01-08                                         2

2015-01-16                                         3

2016-01-16                                         3

 

,...etc

 

2 REPLIES 2
jdunkerley79
ACE Emeritus
ACE Emeritus

You can use a formula tool to do this:

ToNumber(DATETIMEFORMAT([Date], "%W"))+1

 Sample attached

jgraham
6 - Meteoroid

What is the " +1 " doing in the formula?

 

Thank you,

 

Jim 

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels