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! Request now

Reply
Tropicaro
Regular Visitor

Week starting Tuesday returns wrong week 53

Hi,

 

I need to report in weeks running Tuesday - Monday. In this forum I have found a way to add a calculated column to do just that. All weeks number perfectly, but something goes wrong at the end of the year. I'm getting week 53, where it should return week 52 or 1 (see highlighted cells).

 

The Coles Week is a column with manually entered data (just to check if the 'Coles Wk#' column returns the right value)

 

Any thoughts on how to solve this?

Thanks!

 

Capture.JPG

4 REPLIES 4
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Tropicaro,

 

Take the first row and third row in above table as examples.

 

In Year 2017 which contains 365 days, the first week starts from '2017-01-01' to '2017-01-07', so, the last day of week 52 is '2017-12-30'. Then, the week number of '2017-12-31' that returned by dateadd('Date'[Sale Date],-2,DAY) should be 53.

1.PNG

 

In Year 2016, the first week starts from '2016-01-01' to '2016-01-02', so the last day of week52 is '2016-12-24'. The week number of '2016-12-30' that returned by dateadd('Date'[Sale Date],-2,DAY) should be 53.

2.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you very much, I understand.

However... we report in the weeks as mentioned in the Coles Week column. I wanted to avoid the manual entry, mainly because when I try to use this variable in my graphs they don't sort and I'm not able to apply a 'sort as'.

 

Is there any way to recreate the Coles Week column with a calculation? If that makes any sense?

 

 

@Tropicaro Please provide the sample data (copiable format) to replicate your issue and also expected output as well.





Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




Hi Pattemmanohar,

Sorry, only back at work now. I have added a link to a copy of the file.

 

The Coles Week runs from Tuesday to Monday. I am looking for a formula based on column [Sales Date], that would recreate the week numbers of column [Coles Week]

 

https://mackaysmarketing-my.sharepoint.com/:u:/g/personal/carolien_mackaysmarketing_com_au/EQR4tCJ63...

 

Thank you so much!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors