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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
snemilipuri
Helper I
Helper I

Week Start Date

 Hi,

A column has been created for week start date (Tuesday). But getting a problem at the end of 2020 and starting of 2021.

In the below images, Dec 29, 2020 to Jan 4, 2021 is being considered as week 53, 2020. Whereas Jan 5, 2021 is being considered as week 2, 2021. 

But seems week 1, 2021 is merged with week 53, 2020. 

 

Please help to start the week of 2021 with week 1, 2021 (from Jan 5, 2021) instead of week 2, 2021. 

 

snemilipuri_0-1626853165709.png

 

snemilipuri_1-1626853301377.png

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@snemilipuri , Try column like

 

Week Start Year = year([Week Start date])

min week start of year = minx(filter('Date',year([Week Start date])=earlier(year(Week Start date]))),[Week Start date])

or

min week start of year = minx(filter('Date',([Week Start Year ])=earlier((Week Start Year ]))),[Week Start date])


week No = quotient(datediff([min week start of year],[date],day),7)+1

 

Any Weekday Week - Start From Any day of Week
https://community.powerbi.com/t5/Community-Blog/Any-Weekday-Week-Decoding-Date-and-Calendar-2-5-Powe...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@snemilipuri , Try column like

 

Week Start Year = year([Week Start date])

min week start of year = minx(filter('Date',year([Week Start date])=earlier(year(Week Start date]))),[Week Start date])

or

min week start of year = minx(filter('Date',([Week Start Year ])=earlier((Week Start Year ]))),[Week Start date])


week No = quotient(datediff([min week start of year],[date],day),7)+1

 

Any Weekday Week - Start From Any day of Week
https://community.powerbi.com/t5/Community-Blog/Any-Weekday-Week-Decoding-Date-and-Calendar-2-5-Powe...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thanks a lot Amit. This worked. 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.