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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
JarodSchultz
New Member

Total of Maximum in Matrix from multiple rows

I have a matrix that is made of data that is coming from 2 servers. The "values" field is set to "maximum" so I can see what the largest value is from the data set based on year, quarter, month, and day. I want the total to show the sum of the 2 maximum values instead it reporting the highest of the 2 values as a total.

Matrix Maximum Total.png

1 ACCEPTED SOLUTION
mahoneypat
Microsoft Employee
Microsoft Employee

You should make a measure instead of using the implicit measures created by dragging a column into the field well.  Here is one that should work.

 

NewMeasure = SUMX(VALUES(Table[Server]), CALCULATE(MAX(Table[Column])))

 

Replace Table with your actual table name (the same column used in your visual), and replace column with the column used in your max calculation.

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

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

3 REPLIES 3
mahoneypat
Microsoft Employee
Microsoft Employee

You should make a measure instead of using the implicit measures created by dragging a column into the field well.  Here is one that should work.

 

NewMeasure = SUMX(VALUES(Table[Server]), CALCULATE(MAX(Table[Column])))

 

Replace Table with your actual table name (the same column used in your visual), and replace column with the column used in your max calculation.

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

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


Thank You!

JarodSchultz
New Member

Here is an example of someone else that did it but not understanding how they arrived to the solution. https://community.powerbi.com/t5/Desktop/Set-values-as-Maximum-but-want-to-have-the-grand-total-sum-...

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.