Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon'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.
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
Power BI Matrix
Pivot table
A Power BI newbie , so any help gratefully appeciated !
Thanks
Paul
Solved! Go to Solution.
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 )
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 )
Thanks - that works !
User | Count |
---|---|
22 | |
14 | |
11 | |
9 | |
6 |
User | Count |
---|---|
23 | |
23 | |
20 | |
15 | |
10 |