ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
解決済み

Getting the Week Number of the Date In the Year

MAAbdullahAlMubarah
アステロイド

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件の返信2
jdunkerley79
ACE Emeritus
ACE Emeritus

You can use a formula tool to do this:

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

 Sample attached

jgraham
メテオロイド

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

 

Thank you,

 

Jim 

ラベル
トップのソリューション投稿者