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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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