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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

Present data by month by week (same week in two months)

Hello, 

 

I have data that I need to present by month and then by week. My issue is that the same week appears in two months. Is there any solution to add one week only to one month (I.e., add a week to the month with more days in that week)?

I.e. in the image below, I would like the whole Week 39 to belong to September. 

 

Agne_J_0-1697790647607.png

 

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

HI @Anonymous 

You can use this Formula in DAX to get the first date of the week besides all dates of the same week.

 

Startdate of week = [Date] + ((7- WEEKDAY([Date];2))-6)

 

Then use this to extract the month.

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

@Ritaf1983 thank you! It worked!

Agne_J_0-1697792136415.png

 

@Anonymous 
I'm always happy to help 🙂

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
Ritaf1983
Super User
Super User

HI @Anonymous 

You can use this Formula in DAX to get the first date of the week besides all dates of the same week.

 

Startdate of week = [Date] + ((7- WEEKDAY([Date];2))-6)

 

Then use this to extract the month.

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors