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
Varan_15
Helper III
Helper III

Matrix table Row Total how to change

Hi All,

I have 2 category A and B if i show in matrix table the ROW TOTAL should show like below
Row total = Category A- Category B


Capture1.PNG

please help how to achive this in matrix table.

1 ACCEPTED SOLUTION
visheshjain
Impactful Individual
Impactful Individual

Hi @Varan_15,

 

This is how I made the sample data and depending on your model the measure might need to be tweaked.

 

ProductCategoryAmount

Fruits

A

200

Fruits

B

50

Veg

A

600

Veg

B

40

 

Here are the 2 measures that I created:

Total = SUM('Table'[Amount])

 

Net Total = IF( NOT(ISINSCOPE('Table'[Category])), CALCULATE([Total], FILTER('Table', 'Table'[Category] = "A")) - CALCULATE([Total], FILTER('Table', 'Table'[Category] = "B")), [Total] )​

 

This is the result obtained:

 

visheshjain_1-1667371912830.png

 

 

Hope this answers your question and if it does please kudo it and/or mark it as the solution so that others can reach it faster.

 

Thank you,

Vishesh Jain

 

Did I answer your question?
If yes, then please mark my post as a solution!

Thank you,
Vishesh Jain

Proud to be a Super User!



View solution in original post

2 REPLIES 2
Varan_15
Helper III
Helper III

Thanks @visheshjain ,

It's working fine as expected.

visheshjain
Impactful Individual
Impactful Individual

Hi @Varan_15,

 

This is how I made the sample data and depending on your model the measure might need to be tweaked.

 

ProductCategoryAmount

Fruits

A

200

Fruits

B

50

Veg

A

600

Veg

B

40

 

Here are the 2 measures that I created:

Total = SUM('Table'[Amount])

 

Net Total = IF( NOT(ISINSCOPE('Table'[Category])), CALCULATE([Total], FILTER('Table', 'Table'[Category] = "A")) - CALCULATE([Total], FILTER('Table', 'Table'[Category] = "B")), [Total] )​

 

This is the result obtained:

 

visheshjain_1-1667371912830.png

 

 

Hope this answers your question and if it does please kudo it and/or mark it as the solution so that others can reach it faster.

 

Thank you,

Vishesh Jain

 

Did I answer your question?
If yes, then please mark my post as a solution!

Thank you,
Vishesh Jain

Proud to be a Super User!



Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.