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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply

Some values not calculating in a measue

Hope you can help me figure this one out. I have a table, and I am trying to calculate total area based on the a slicer applied to the page, as well as a weighted value based off the percentage of total area.. The slicer is a drop down to select the year.  I have a measure that is calculating the total area based on the slicer:

 

Area Total = 
CALCULATE(SUM('DDx Export'[Total area]),
'DDx Export'[Percent reduction] > 0,
ALLSELECTED('DDx Export')
)

 

 This works, and updates the total based on the slicer. The next measure I am using calculates the percentage of the total area using the following measure:

 

Percentage of Total Area = (SELECTEDVALUE('DDx Export'[Total area])/[Area Total])

 

This is where things start to go werid.  The calculation works mostly.  Some of the values are just blank.  Any Idea why this wold be? See image below:

MichaelRensing_0-1722097722840.png

Close to the bottom of the image you can see the area 668,832.80. This should calculate to around 4.4% but it is just blank.
Same thing is happening for weighted Net_pEUI measure, but to a larger degeree. I have attached a link to the file in case that helps.

Download: Sustainability Data.pbix

1 ACCEPTED SOLUTION
DataInsights
Super User
Super User

@MichaelRensing,

 

This can be resolved with an explicit measure:

 

Sum Total Area = SUM ( 'DDx Export'[Total area] )

 

Adjust your % measure as follows:

 

Percentage of Total Area = DIVIDE ( [Sum Total Area], [Area Total] )

 

DataInsights_0-1722099189056.png

 

It's best practice to use explicit measures--they're more robust than implicit measures.





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

Proud to be a Super User!




View solution in original post

2 REPLIES 2

@DataInsights 

Thank you.  That did it.  I was also able to update my other calculations using the same methodology. 

DataInsights
Super User
Super User

@MichaelRensing,

 

This can be resolved with an explicit measure:

 

Sum Total Area = SUM ( 'DDx Export'[Total area] )

 

Adjust your % measure as follows:

 

Percentage of Total Area = DIVIDE ( [Sum Total Area], [Area Total] )

 

DataInsights_0-1722099189056.png

 

It's best practice to use explicit measures--they're more robust than implicit measures.





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

Proud to be a Super User!




Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors