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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Vaiden
Regular Visitor

Find what values exist in Col1 where in multiple rows, each row with different condition met in Col2

Hey Everyone,

 

I am trying to do something extreamly specific and not sure if its even possible within Power BI. I have a table with users and intrest, looks similar to the image below.

 

Vaiden_0-1687366360137.png

 

By default with PowerBI if I use a slicer to find where intrest is sports and hiking it would return back any row were the intrest field had either sports or hiking as the value as shown below.

 

Vaiden_1-1687366441440.png

 

What I am trying to do is find what users have intrest in both sports AND hiking, and I am strugleing to find a way to do this. I assume I need to compair each row to itself to find where the user exist mutliple times and has both intrest insted of just one of the two specified. With the example table this would be the results I want to see:

 

Vaiden_2-1687366924008.png

 

Is there a way to filter the table like this? Thank you for your time!

2 REPLIES 2
mahenkj2
Solution Sage
Solution Sage

Hi @Vaiden 

 

You can make it fully dynamic here:

 

mahenkj2_0-1687371544302.png

 

 

https://drive.google.com/file/d/1cWuBxA49pqco_I8zrhCFeXDHV0fVuRuM/view?usp=sharing

 

Hope it helps.

mahenkj2
Solution Sage
Solution Sage

Hi @Vaiden 

 

Its possible by few ways at least.

 

One ways, is kind of grouping by Users, and if count is more than once in the table, then we can filter those. 

 

for example, 

Counts = CALCULATE(COUNTROWS('Table'),ALL('Table'[Interest]))

 

and in the visual level filter, apply filter for these counts >1.

 

mahenkj2_0-1687369585758.png

 

Hope it helps.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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