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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Relationships in Matrix

Hi,

I have the following relationships and I would like to put the data in a Matrix. I want to show the IDs of the SWR Module that are allocated to each c_CustomerID in STR A-Sample.

peetman_0-1612436213017.png

 

I'm using the following visual settings, but it gives an error.

peetman_0-1612436329708.png

 

 

1 ACCEPTED SOLUTION
v-robertq-msft
Community Support
Community Support

Hi, @Anonymous 

According to your description and sample picture, if you want to make the Matrix display the correct value, you can try to build a relationship on these tables directly and give them a “Both” filter relationship, like this:

v-robertq-msft_0-1612771094180.png

 

If it’s not enabled, you can try to disable relationships to other tables if it’s possible.

 

If you still have a problem, you can post the sample pbix file(without sensitive data) and your expected result.

How to Get Your Question Answered Quickly 

 

Best Regards,

Community Support Team _Robert Qin

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

9 REPLIES 9
v-robertq-msft
Community Support
Community Support

Hi, @Anonymous 

According to your description and sample picture, if you want to make the Matrix display the correct value, you can try to build a relationship on these tables directly and give them a “Both” filter relationship, like this:

v-robertq-msft_0-1612771094180.png

 

If it’s not enabled, you can try to disable relationships to other tables if it’s possible.

 

If you still have a problem, you can post the sample pbix file(without sensitive data) and your expected result.

How to Get Your Question Answered Quickly 

 

Best Regards,

Community Support Team _Robert Qin

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

PaulDBrown
Community Champion
Community Champion

@Anonymous 

I suggest you set up your model like this (and get rid of the many-to-many relationship - delete both relationships with the red X ). Create dimension tables for both "Customer ID" and "In-Links at depth" with unique values and join in one-to-many relationships with the tables containing the corrsponding fields.

 

Also change the direction in the relationships from SYR and SWR modules to SYR Module Satis.. to single direction

temppbi2.PNG

 

Then use the unique fields from the dim tables to set up your visuals (or the ID fields from the SYR and SWR modules if you need them)





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Anonymous
Not applicable

Thank you for your help,

I've created the following relationships as you suggested

peetman_2-1612516796621.png

 

 

And when I try to put the following on a Matrix it gives me an error

peetman_0-1612516657811.png

peetman_1-1612516685809.png

 

@Anonymous 

 

You should add these relationships and then use the fields from the Dim tables in your visuals:

peetman_2-1612516796621.jpg

 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Anonymous
Not applicable

Hi Paul, what you mention does not have the same type of data. Although the names are similar there is no relationship.

@Anonymous 

The customer fields are different?

If the customer sets from both tables are different, what's the point of having having a customer set which isn't related to the other field in the same matrix? What is your objective?

can you share a sample PBIX file hiding confidential data? 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Pragati11
Super User
Super User

Hi @Anonymous ,

 

Your query is incomplete as it doesn't mention what error you are getting.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

amitchandak
Super User
Super User

@Anonymous , Try if treatas can help

 

https://docs.microsoft.com/en-us/dax/treatas-function

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
Anonymous
Not applicable

Sorry, I don't know how and where to use that function

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.