Forum Discussion

Turnipface's avatar
Turnipface
Icon for Advocate I rankAdvocate I
8 years ago
Solved

Only display values that include ALL slicer selections - not Either/Or

Hey PowerBI Community,

I have a challenge that's addressed in another thread, but it does not entirely work for me.

I have this .pbix file that i've made to simulate my environment: https://we.tl/t-scjeXQwrVz 
On one table, I have the Orders (location doesn't matter)

Order IDLocation
1Earth
2Mars
3Moon
4Earth
5Earth

 

On another table, i have the Products. Both tables are linked by Order ID

Order IDProduct
1Chair
1Cucumber
2Chair
2Cucumber
3Chair
4Chair
5Chair
5Cucumber

 

What i need to find out is:  Orders that have both Chairs and Cucumbers. 
How would i go about creating a slicer that will filter based on ALL selected values in it? In the above case, that'd mean that it'll result in 3 total orders - 1, 2 and 5 because they're the only ones that have both items.

If i do that via a standard slicer by Product, i will get orders that have either a Chair or a Cucumber. (see picture below)

 

Any help with this will be highly appreciated! 

4 Replies