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

The Fabric community is upgrading! Read all of the details including the timeline and what you can expect. Learn more

Reply
DKM_83
Regular Visitor

Difference between two Categories value - Matrix Table

Hi Team,

 

I have created Matrix table and wants to show difference between two cateories values.

 

The below table Catefories for App and Web is single column and wants to show Diff column is App-Web values.

 

 

 

Capture.PNG

 

kindly advise me.

 

 

Thanks

DK

 

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @DKM_83 
You can create 3 measures and use them, as "values".
(you don't need to put anything in "columns")

1. For app
App = calculate( sum('your table name[your value column]), 'your table name[category] = "App")
2. For Web
Web= calculate( sum('your table name[your value column]), 'your table name[category] = "Web")
3. For diff 
Diff = [App]-[Web]

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

1 REPLY 1
Ritaf1983
Super User
Super User

Hi @DKM_83 
You can create 3 measures and use them, as "values".
(you don't need to put anything in "columns")

1. For app
App = calculate( sum('your table name[your value column]), 'your table name[category] = "App")
2. For Web
Web= calculate( sum('your table name[your value column]), 'your table name[category] = "Web")
3. For diff 
Diff = [App]-[Web]

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.