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
murphm6
Helper II
Helper II

Help identify the difference between these two measures?

Hi all,

 

I have a visual in a report that counts the 'Days left in Month'. My end user wants to add functionality to look into next month, so I created a new measure which counts days between now and end the end of next month. 

 

Previous Measure = DATEDIFF(TODAY(), EOMONTH(TODAY(), 0), DAY)

New Measure = DATEDIFF(TODAY(), MAX('Calendar'[Date]), DAY)

 

New measure is working as expected

murphm6_0-1669137589025.png

 

Here is my problem - we use this 'Days left in Month' measure to calculate % of typical demand. The formula for %Demand is 

 
%Demand = CALCULATE(AVERAGE('Indication Calcs'[% of Total Monthly Volume]), FILTER('Indication Calcs','Indication Calcs'[Value]=[Days Left in Month]))
 
When I switch out the old [Days Left in Month] for my new measure I created, I'm getting a blank value. I've confirmed there are no filters affecting the visual and have confirmed the old measure works fine. For this month, they should be returning the same values. 
 
Why is it that I'm returning a blank value? 

 

2 REPLIES 2
amitchandak
Super User
Super User

@murphm6 , new measure will depend on selection and max date available in row context.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

My max date on my calendar table is 10/1/2024, but the slicer affecting the whole page is only for the end of this month. Shouldn't this work?

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.