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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
TravisGlanzer
Frequent Visitor

Number of Days in YTD through End of Last Monday

I am trying to get an quantity per day average in Power BI.  I used the following formula to calulate the number of days in each month:  

Number of days in month = DATEDIFF( EOMONTH(max('DateTable'[FiscalDate]),-1),EOMONTH(max('DateTable'[FiscalDate]), 0), DAY)

 

The per month YTD Total Average is correct but the formula is only giving me 31 days for the total when I need it to report 90 day total when selecting these three months

 

TravisGlanzer_0-1619551496066.png

 

1 ACCEPTED SOLUTION
jthomson
Solution Sage
Solution Sage

Change the first max to min and it should work?

View solution in original post

1 REPLY 1
jthomson
Solution Sage
Solution Sage

Change the first max to min and it should work?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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