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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
amtbew
Helper I
Helper I

Filter/Slicer - And Logic instead of OR

Here's an example of my data

 

Location CategorySales
A1Red1000
A1Blue1500
A2Red2000
A3Blue2000
A4Red2500
A4Blue2500

 

I'd like to be able to filter or slice to just the rows that the Red and Blue category both have an entry. 

Here is the desired output

 

Location CategorySales
A1Red1000
A1Blue1500
A4Red2500
A4Blue2500

 

Ultimately I'm trying to compare Red vs Blue.

 

I'm assuming I need some helper columns to get around the default functionality. If I multi-select both Red and Blue, then I get all the rows returned that either has an entry.

 

Thanks

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

PBI file attached.

Hope this helps.

Ashish_Mathur_0-1704238151870.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
AlexisOlson
Super User
Super User

This did work. However, I'm also looking to see the summary of the two categories. 

 

This was my starting data. 

Location CategorySales
A1Red1000
A1Blue1500
A2Red2000
A3Blue2000
A4Red2500
A4Blue2500

 

Using the blog article method was able to add a slicer and select Red & Blue to display this:

Location CategorySales
A1Red1000
A1Blue1500
A4Red2500
A4Blue2500

 

Looking to add a seperate table, that would show the following if both Red & blue were selected

Categorysum of Sales
Red3500
Blue4000

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors