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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Agne_J
Frequent Visitor

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 @Agne_J 

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
Agne_J
Frequent Visitor

@Ritaf1983 thank you! It worked!

Agne_J_0-1697792136415.png

 

@Agne_J 
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 @Agne_J 

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.