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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Matrix Row Total line calculation

Hi I have a hopefully simple question within the Matrix Total Calculation.

 

Have: Total Revenue and Total Expense something like below:

Revenue    Amount

   GL1

   GL2

   GL3

   Total     -----  (Total Revenue Subtotal)

Expense

   GL4

   GL5

   Total   ----- (Total Expense Subtotal)

Total   (Grand Total)

 

The last line, the grand total, sums Total Revenue and Total Expense, which is incorrect. 

How to redo this for just the last line to be 'Total Revenue' - Total Expense' ? Subtotals for revenue and expenses work fine, just unsure how to only change that very last grand total line

 

Many thanks for reading

1 ACCEPTED SOLUTION
MattAllington
Community Champion
Community Champion

This is a big topic. I assume both R and E are positive numbers, but when you get to the total you need to flip the sign of E.   Watch this video for Insights. http://www.youtube.com/watch?v=ojHZkWkEY7Q/



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

View solution in original post

2 REPLIES 2
MattAllington
Community Champion
Community Champion

This is a big topic. I assume both R and E are positive numbers, but when you get to the total you need to flip the sign of E.   Watch this video for Insights. http://www.youtube.com/watch?v=ojHZkWkEY7Q/



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.
Anonymous
Not applicable

thanks!

 

Yes signs are positive for both.  That video linked is quite helpful but is making my head spin, that is pretty complex

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors