Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

week number of week commencing date

Hi there,

 

I need to get a unique week number for each week commencing date.

 

For example, for the week commencing 19/08/2019, this could be week 34, and for week commencing 26/08/2019 would be week 35.

 

The only issue is that for the week commencing 19/08/2019, it falls into weeks 34 and 35, when looking at Weeks in the Year. What i need is week commencing 19/08/2019 to only have a single, unique week number.

 

Can I please get some help with this?

 

Thanks

3 REPLIES 3
smpa01
Super User
Super User

@Anonymous  sorry can you elaborate . This is what I am getting.

 

Capture.PNG

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs
Anonymous
Not applicable

So where you have week commencing 19/08/2019, this is week 34. But at the end of the week on the 25/08/2019, this comes up as part of week 35, even though it is within the week commencing 19/08/2019.

 

I need 19 - 25th to have 1 specific week number. Then the 26th onwards in that week will have its own number.  So we probably don't want to be using the Weeks within the Year function - perhaps there's a way to create my own key for week numbers for week commencing.

 

 

@Anonymous  so 08/25/2019 is indeed part of wk#35. Please take a look below.

 

Capture.PNG

 

But to feed your requirement this might work

WKNumberModified=IF(WEEKDAY([Column1])=1, WEEKNUM([Column1])-1, WEEKNUM([Column1]))
Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors