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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
eltorr0
Regular Visitor

Difference between two matrix tables

Hi,

 

I'm trying to recreate an existing excel template that provides the difference between two tables.

 

I created two separate matrix tables, now i'm looking to create a third matrix table that provides the result of subtracting values from matrix 1 and matrix 2. 

 

Which would be the best way to create that third matrix showing the difference?

 

the two matrix have unique relationship to the row and column values, therefore a measure subtracting values from matrix 1 and 2 would not work.  Is there an alternative way to  creating this 3rd matrix table?

6 REPLIES 6
GilbertQ
Super User
Super User

Hi @eltorr0

 

Can you please put up a sample of the data you are working with?

 

You will require to have some type of common column between the different matrix tables, so that you know which values to subtract from each other.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Hi @GilbertQ,

the rows and columns have the same name, see sample screenshot:

matrix.JPG

 

@eltorr0,

 

You may try to use UNION Function.

 

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Each table has a two separate relationships for the Ratio and Distance, the values are stored on a common data table.  

Any suggestion on getting it to work using this type of relationship?

 

 

matrix relationship.JPG

@eltorr0,

 

First check the RELATED Function and LOOKUPVALUE Function.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @eltorr0

 

What you could then do is in the Query Editor Merge the tables Matrix1 and Matrix 2 joining on the Ratio Column.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.