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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
karkar
Helper III
Helper III

DATE WEEK

Hello,

 

I am trying to do a table by Week of Month-Year. Actually two tables-one for numerator and the other for denominator.

Unfortunately in the denominator table I am getting some weeks extra.How can that be a possibility?

 

Thanks

 

 

 

Year-Month   Week     Numerator

2016-06          23           100

2016-06          24           150

2016-06          25           170

2016-06          26           166

 

 

Year-Month   Week     Denominator

2016-06          23           1000

2016-06          24           1500

2016-06          25           1700

2016-06          26           1660

2016-06          27           1660

1 ACCEPTED SOLUTION
Phil_Seamark
Microsoft Employee
Microsoft Employee

Weeks and months don't play nicely when it comes to grouping dates.  As you can see, the first and last weeks start before and extend beyond the month of June 2016.  If you happen to have data in these the week group will be returned.

 

 

weeks.png

 

 

 


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

4 REPLIES 4
GilbertQ
Super User
Super User

What happens if instead of week of year, you put in the week of month?

 

In doing it that way it will only start from the first date of the month for the first week?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Phil_Seamark
Microsoft Employee
Microsoft Employee

Weeks and months don't play nicely when it comes to grouping dates.  As you can see, the first and last weeks start before and extend beyond the month of June 2016.  If you happen to have data in these the week group will be returned.

 

 

weeks.png

 

 

 


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @karkar,

I an unable reproduce your scenario, could you please share your resource data or .pbix file for further analysis?

Best Regards,
Angelia


Phil_Seamark
Microsoft Employee
Microsoft Employee

Is it because your weeks don't fit nicely into a month. Take a closer look at the days in weeks 23 through 27.

To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.