Forum Discussion
Relationships
- Anonymous10 years ago
Try playing around a bit with the Cross Filter Direction on each relationship, setting them to Single, as opposed to Both, in this situation might work. That might allow you to define the relationships without making any of them inactive. Of course once you get them defined be sure to check the interactivity on the visuals you have to ensure they are reacting as necessary for your usage scenario.
Jeroenvb1 It's not filters on queries achinm45 is referring to. If you have relationships between tables, any filter context you create in a report (by placing a measure next to a column for instance) or a measure gets passed along those relationships whenever anything is calculated.
Let's say you have three tables. TableA, TableB, TableC, each with 3 columns. You have a relationship between TableA[Column1] and TableB[Column1], and another between TableB[Column2] and TableC[Column2]. You cannot now create an active relationship between TableA[Column3] and TableC[Column3] because TableA and TableC are already related via the shared relationships with TableB. That's what this error message is telling you. You can't have two active relationship pathways between any pair of tables, because Power BI would have no way of knowing which pathway to use when evaluating a filter context, and the two pathways could result in very different filtered results.
You can however create an inactive relationship, and then write specific measures to reference it via the USERELATIONSHIP function, but the relationship will be ignored in all other cases that don't reference the relationship in that way.
Thank You Anonymous for such a valuable explanation of scenario. I had calculated that in mind but your way of jotting it here is nice.