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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
psztrtbr
Frequent Visitor

Adding a new column to a matrix visual based on calculation

Hi!

 

I have the following data table:

 

CategoriesProductAmount
ALLA3
ALLB2
ALLC10
ALLA7
ALL B13
Category1A2
Category2B3
Category3C5
Category1B3
Category2A2
Category3C1

 

I want to make a matrix table out of this in the following format:

ProductCategory1Category2Category3ALL minus EVERY CATEGORYTotal
A22010-2-2=610
B33015-3-3=915
C00610-6 = 410
Total55635-5-5-6 = 1935

 

From Category1 to Category3 it is easily done, but i'm having a hard time figuring out how to do the calculated column.

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Not a calculated column.

 

lbendlin_0-1702257912250.png

 

View solution in original post

3 REPLIES 3
lbendlin
Super User
Super User

Not a calculated column.

 

lbendlin_0-1702257912250.png

 

If i put this measure in my matrix, the measure gets calculated for every existing column in the matrix. Is there a way around this?

You are already skirting by one of the UX rules (don't repeat data in the same visual). I would recommend you use separate visuals. 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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