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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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