Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Turnipface
Advocate I
Advocate I

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)

Capture.PNG

 

Any help with this will be highly appreciated! 

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

This was the purpose of my Patient Cohort Quick Measure:

 

https://community.powerbi.com/t5/Quick-Measures-Gallery/Patient-Cohort/m-p/391883

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

4 REPLIES 4
Greg_Deckler
Super User
Super User

This was the purpose of my Patient Cohort Quick Measure:

 

https://community.powerbi.com/t5/Quick-Measures-Gallery/Patient-Cohort/m-p/391883

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Hi Greg, thanks for creating this!

 

I'm trying to take it to the next level and filter the "Patients" table based on the concatenated list of patients that match the selection in the filter. Any ideas on how I might do that?

That's precisely what i was looking for! The Count of Cohorts in particular will really help me out.

Thanks for your solution!

 

Cool, glad I added that variation then!



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors