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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
akumulator
Regular Visitor

Power Matrix - getting %'s showing correctly in totals

Hi I have a matrix that shows the number of hours each month that a user is available to work and the number that they are actually working based on jobs allocated to them 

 

The matrix has a calculated column (Util) based on Working Hours / Available Hours which all works correctly - however the totals whilst summing the working & available hours , doesnt then calculate the total util of total working hours / total available hours - I only have the option of havingb the sum of the utils or the average of the utils - which is not the correct answer - I attach the table of data & the matrix - plus the same visual in an excel piviot table which calculates the total util correctly

BI Table

akumulator_0-1720617050113.png

Power BI Matrix

akumulator_1-1720617173985.png

 

Pivot table 

akumulator_3-1720617248437.png

 

A Power BI newbie , so any help gratefully appeciated !

Thanks

 

Paul

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

@akumulator 

You should do the calcualtions with measures, rather than a calculated column.  Add 2 measures to sum up the available and working hours.

 

Available Hours = SUM ( 'YourTable'[available] )
Working Hours = SUM ( 'YourTable'[working] )

 

Then a measure to use those first two and calcualte the Utilization

 

Utilization = DIVIDE ( [Working Hours], [Available Hours], 0 )

jdbuchanan71_0-1720618029427.png

 

 

View solution in original post

2 REPLIES 2
jdbuchanan71
Super User
Super User

@akumulator 

You should do the calcualtions with measures, rather than a calculated column.  Add 2 measures to sum up the available and working hours.

 

Available Hours = SUM ( 'YourTable'[available] )
Working Hours = SUM ( 'YourTable'[working] )

 

Then a measure to use those first two and calcualte the Utilization

 

Utilization = DIVIDE ( [Working Hours], [Available Hours], 0 )

jdbuchanan71_0-1720618029427.png

 

 

Thanks - that works !

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!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.