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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.