Forum Discussion
Filtering on many to many relationship
Can you screenshot your data model?
- biofio8 years agoFrequent Visitor
Here is what I am working with:
relationshipsreview platform relationshipmain reviews table
- Anonymous8 years agoNot applicable
HI biofio,
I'd like to suggest you create a calculated table with merged union platform types, then use this table to link detail tables which you used.
Platform Bridge = DISTINCT ( UNION ( VALUES ( platformInfo[TargetedPlatforms] ), VALUES ( WorkOrder[TargetedPlatforms] ) ) )
After these steps, you can use above bridge table to filter with all detail tables.Regards,
Xiaoxin Sheng- biofio8 years agoFrequent Visitor
I think I am still confused. So if I have one many-to-many relationships (let's say Platforms:Reviews), and I construct a bridge table*, then how do I actually use that bridge table to filter? I want to be able to select one a subset of platforms and give me only those reviews that have a relationship with those platforms.
* My bridge table (Bridge) looks like (ignore BigId):
Linked to this, I have a one-column table:
Platforms
TargetedPlatform
xbox
mobile
windows
...
Reviews
ReviewId | Latency | ...
38 | 3.5 | ...
So, Reviews has a 1:M with Bridge, and Platforms also has a 1:M with Bridge. Then how do I create my slicer based on this? I had figured do it on the "TargetedPlatform" field of Platforms, but that did not work.