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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.