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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register 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
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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