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
user2134_
Microsoft Employee
Microsoft Employee

How to get difference between two columns using matrix visual

I have a table with treatment and control values, now I am creating a matrix by pivoting at Treatment and Control values. But I am not sure how to get difference between these columns. We have the option in PowerBI to get the Column totals, but how to get the difference?
I have used these in Matix:
Columns: Category
Values: A, B, C

Sample Data:

CategoryABC
Treatment123
Treatment123
Treatment123
Treatment123
Treatment123
Control123
Control123
Control123
Control123


Expected:

 TreatmentControlDelta
A541
B1082
C15123



4 REPLIES 4
user2134_
Microsoft Employee
Microsoft Employee

Here is the visual which is matix. To get this visual, you just have to enable the option under Values section

user2134__1-1678866268637.png

 

user2134__0-1678866138382.png

 

user2134_
Microsoft Employee
Microsoft Employee

You cannot share the samepl pbix file here

user2134_
Microsoft Employee
Microsoft Employee

Beacause of confidentiality I cannot share it. But you can use that sample data

Ahmedx
Super User
Super User

Share sample pbix file to help you.

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.