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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

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 carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.