Forum Discussion
Filtering on many to many relationship
My data setup is like this:
I have one table with ReviewId as the primary key, and another table that looks like this:
ReviewId | Platform
1 xbox
1 windows
2 xbox
2 mobile
3 xbox
... ...
And so on. What I want to do is create a slicer on the platform feature, so if I select "xbox", it filters the reviews so I only have the reviews that have an "xbox" entry in the previous table.
The ReviewId's and Platforms are linked by another ID, "BigId". So one BigId generates multiple reviews and multiple platforms, which I believe is the reason that the normal slicers do not function as I want. Thanks for any help.
5 Replies
- AnonymousNot applicable
Can you screenshot your data model?
- biofioFrequent Visitor
Here is what I am working with:
relationshipsreview platform relationshipmain reviews table
- AnonymousNot 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