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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
TomSinAA
Helper III
Helper III

Totals in Matrix

I am trying to get the totals correct for the Expected Learner column in the matrix below

TomSinAA_0-1713892428152.png

 

The source table has a row for each learner and Expected Learners has the same value for all learners in a group.  So in the above matrix, the Actual Learners column is a count of the learners.  The Expected learners column is displaying the Max(expected learners) since this value is the same for all learners in a group. The correct Total for the Expected learners should be 5. 

 

 

2 ACCEPTED SOLUTIONS
_AAndrade
Super User
Super User

Hi @TomSinAA.,

Take a look at this video: https://www.youtube.com/watch?v=yw0QHu9V4UQ


I think it could help you to fix your totals.





Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




View solution in original post

v-junyant-msft
Community Support
Community Support

Hi @TomSinAA ,

@_AAndrade Thanks for your concern about this case!

And @TomSinAA , it seems that the Expected Learners is a measure, right?
If it is, this is my sample DAX:

Expected Learners = MAX('Table'[Expected])

vjunyantmsft_1-1713923215458.png
And please try to add this DAX:

Measure = SUMX(VALUES('Table'[Region]), [Expected Learners])

The final output is as below:

vjunyantmsft_0-1713923172624.png

 

Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-junyant-msft
Community Support
Community Support

Hi @TomSinAA ,

@_AAndrade Thanks for your concern about this case!

And @TomSinAA , it seems that the Expected Learners is a measure, right?
If it is, this is my sample DAX:

Expected Learners = MAX('Table'[Expected])

vjunyantmsft_1-1713923215458.png
And please try to add this DAX:

Measure = SUMX(VALUES('Table'[Region]), [Expected Learners])

The final output is as below:

vjunyantmsft_0-1713923172624.png

 

Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

_AAndrade
Super User
Super User

Hi @TomSinAA.,

Take a look at this video: https://www.youtube.com/watch?v=yw0QHu9V4UQ


I think it could help you to fix your totals.





Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.