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
Anonymous
Not applicable

Hidden relationship?

I imported a few entities from Microsoft CRM using the OData Feed. When I tried to create a relationship between two of the tables (systemusers and tasks), it automatically made the relationship inactive. When I tried to make it active, it said that there was already another active relationship between the one of the two tables (tasks) and another table (queues) and I would need to deactivate/delete that relationship first. However, when I look at the tables in the Model area, there's no relationship between those two tables! It's also not in the "Manage Relationships" list. It's preventing me from making an important relationship.

 

Does anyone have an idea of what's going on? Is there such thing as a hidden relationship?

 

Here's the picture. The inactive relationship that I'm trying to make active is in yellow.

Annotation 2020-03-25 084955.png

 

Annotation 2020-03-25 085318.png

1 ACCEPTED SOLUTION
Stachu
Community Champion
Community Champion

the message actually says it quite clearly. Currently there is a following setup:

  1. 'queues' => 'systemusers'
  2. 'queues' => 'trs_tasktypes'=>'tasks'

so if you add 'systemusers'=>'tasks' then filter on 'queues' could follow 2 paths to filter 'tasks': either the path 2. or this one:

  • 'queues' => 'systemusers'=>'tasks'

which causes the ambiguity. The question is which logic you want to implement. If it difers per case then you can activate the inactive relationship by using USERRLATIONSHIP, e.g. in CALCULATE https://dax.guide/userelationship/

more general info on relationships (around 14:30 Alberto starts talking about ambiguity):

https://www.sqlbi.com/tv/understanding-relationships-in-power-bi/



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

View solution in original post

5 REPLIES 5
v-yingjl
Community Support
Community Support

Hi @Anonymous ,

I'm not certain whether your the scenario like this:

relationship1.pngrelationship2.png

When you try to create active relationship between table and table2, it will show this message:

relationship3.png

That could be there has indirectly relationships between these tables so that you should enable one of the relationship or change the Cross filter direction.

Please refer:

  1. https://radacad.com/what-is-the-direction-of-relationship-in-power-bi
  2. https://docs.microsoft.com/en-us/power-bi/desktop-bidirectional-filtering

If not like the previous scenario, could you please share more details about some pictures or error messages for further discussion?

 

Best Regards,

Yingjie Li

 

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

Stachu
Community Champion
Community Champion

most likely you have bidirectional relationships involving other tables, that are indirectly creating a relationship between the 2.

I would suggest changing the bidirectional relationships to single direction (bidirectional relationships are generally a bad idea in DAX, see more here https://www.sqlbi.com/tv/understanding-relationships-in-power-bi/)

 

if you post the screen of all your relationships I could then specify which path is causing the issue exactly



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

Anonymous
Not applicable

@Stachu @v-yingjl Thank you for your responses! I uploaded a picture of my issue. It doesn't look like there's bidirectional relationships.

Stachu
Community Champion
Community Champion

the message actually says it quite clearly. Currently there is a following setup:

  1. 'queues' => 'systemusers'
  2. 'queues' => 'trs_tasktypes'=>'tasks'

so if you add 'systemusers'=>'tasks' then filter on 'queues' could follow 2 paths to filter 'tasks': either the path 2. or this one:

  • 'queues' => 'systemusers'=>'tasks'

which causes the ambiguity. The question is which logic you want to implement. If it difers per case then you can activate the inactive relationship by using USERRLATIONSHIP, e.g. in CALCULATE https://dax.guide/userelationship/

more general info on relationships (around 14:30 Alberto starts talking about ambiguity):

https://www.sqlbi.com/tv/understanding-relationships-in-power-bi/



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

Such a shame that Power BI does not always list which tables are causing the problem. In this case it listed queues and tasks, but as I write this in 2023, when I see such a message there, is no indication as to which of the dozens of tables are causing the problem. But thank you for describing the issue in terms I can understand. I will, at least, know where to look from not on!

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.