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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
bschre
Frequent Visitor

Trouble understanding how matrix totals work

I turned on the Row Totals feature for a matrix in Power BI desktop. But I don't understand how the totals are being calculated.  Say there are four courses and each course has a certain number enrollment on a given day, then there's a capacity for each course.  I made a measure to get the % Filled -- I divided Enrolled / Capacity.   That works fine.  But when I turned on totals, PBI summed up the % Filled values and then divided it by the number of courses (first snippet below).

 

I need to to sum all capacities, then all enrollments, and then do the division.  Like the second snippet.  That is, for these four courses, the filled rate is 88%, not 86.

 

(Sorry I'm still fairly new to PBI ... but the capacity and enrollment are straight numbers coming from the datasource and I made a measure for %Seats Filled = DIVIDE('Course Reg'[Enrolled],'Course Reg'[Capacity]))

 

   
   
EnrolledCapacity% Filled
16200.8
15200.75
31311
28310.9
  3.45
   
3.45 / 4 = .86 

 

  
  
EnrolledCapacity
1620
1520
3131
2831
90102
  
90 / 102 = .88
1 ACCEPTED SOLUTION
mahoneypat
Employee
Employee

Please see this video for how to get your expected total.

(2) Power BI - Tales from the front #01 - Getting the Right Total - YouTube

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

2 REPLIES 2
bschre
Frequent Visitor

Thanks, I had seen this information on some tutorials and never knew what they were talking about.  I get it now -- created a SUMX measure and now my totals look right.

mahoneypat
Employee
Employee

Please see this video for how to get your expected total.

(2) Power BI - Tales from the front #01 - Getting the Right Total - YouTube

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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