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
Anonymous
Not applicable

Group Weekly Starting 1/1

Hi,

 

Is there any way to start a grouping of weeks starting on Jan 1? I have this formula:

Date Start of Week = DATEADD(Dates[Date],-1*WEEKDAY(Dates[Date])+weekday(STARTOFYEAR(Dates[Date])),DAY)
but this starts the count of the week on Sunday when I want it to start on 1/1
Capture.PNG
So for example, the highlighted "1/8/2013" would instead say "1/1/2013" since from 1/1, those two days will be included in the week
 
Thank you!
Sarah
1 ACCEPTED SOLUTION
mwegener
Most Valuable Professional
Most Valuable Professional

Hi @Anonymous ,

 

try this.

 

Date Start of Week =
DATE ( YEAR ( Dates[Date] ), 1, 1 )
    + QUOTIENT ( DATEDIFF ( STARTOFYEAR ( 'Dates'[Date] ), Dates[Date], DAY ), 7 ) * 7

Regards,

Marcus

Dortmund - Germany
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support. 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


View solution in original post

6 REPLIES 6
mwegener
Most Valuable Professional
Most Valuable Professional

Hi @Anonymous ,

 

try this.

 

Date Start of Week =
DATE ( YEAR ( Dates[Date] ), 1, 1 )
    + QUOTIENT ( DATEDIFF ( STARTOFYEAR ( 'Dates'[Date] ), Dates[Date], DAY ), 7 ) * 7

Regards,

Marcus

Dortmund - Germany
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support. 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


Anonymous
Not applicable

Marcus,

Amazing!! Thank you so so much for your help again!
Sarah

VasTg
Memorable Member
Memorable Member

@Anonymous 

 

Sarah,

 

Was this post not helpful? Looks like you asked the same question and @amitchandak  already answered it.

 

https://community.powerbi.com/t5/Desktop/Weekly-start-each-year-on-1-1/m-p/874778

Connect on LinkedIn
Anonymous
Not applicable

This was helpful, but it did not group the full week for each year starting on 1/1.

For example, in 2013, there were only 5 days in the week "1/1" since the week in the formula given started on sunday, and sunday was 12/30/2012.

I wanted to display 7 days in the week 1/1 for all years

 

Sarah

mwegener
Most Valuable Professional
Most Valuable Professional

Hi @Anonymous 

 

i don't understand what is wrong?

Week1_1.png

Regards,

Marcus

Dortmund - Germany
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


Anonymous
Not applicable

oh this reply was for the previous comment not yours..

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.