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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
wyattexplore
Frequent Visitor

In Matrix, Measure is rows are Summed, but Totals need to be averaged

Hey PBI,

 

I couldn't seem to find a concrete answer on this, so I apologize if this is a duplicate thread. 

I have a measure to calculate employee utilization on my matrix as follows.

 

Utilization = 'Employee Hours Table'[Total Billable Hours] / CALCULATE('Date Table'[Total Expected Hours])

 

Total Expected Hours =
CALCULATE(
        SUM( 'Date Table'[Workday Hours]), ALLSELECTED( 'Date Table'[Date]))

 

Total Billable Hours =

CALCULATE(
        SUM( 'Hours Table'[Amount]), [Hours Type]="Billable")

 

I hope that makes sense. [Workday Hours] is a calculated column that determines if the day is Mon-Fri and not a holiday and then uses "8" for the expected hours. The ALLSELECTED it uses the full expected hours for a date slicer, and not just for the days that the user had input time.

 

The issue I am running into is on my matrix, the rows are displaying correctly, however the Total is displaying as a sum of percentage, when I need it to display as an average of percentages. I can't seem to change it as this is just a measure. Would anyone have any advice on how to fix this?

 

Total Display Issue.png

 

 

 

3 REPLIES 3
v-lili6-msft
Community Support
Community Support

hi, @wyattexplore 

Could you please tell me if your problem has been solved? If it is, could you please mark the helpful replies as Answered?

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Unfortunately I did not find this solution to work yet. I am still trying to figure out why it isn't working correctly. @v-lili6-msft 

 

v-lili6-msft
Community Support
Community Support

hi, @wyattexplore 

This looks like a measure totals problem. Very common. See this post about it here: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376

Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907

 

You could use AVERAGEX to get it.

If you still have the problem, please share a sample pbix file.

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Kudoed Authors