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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

Filter Out All Rows Based On Criteria

Hello!

 

I have a dataset with the following three fields: Product, Warehouse, and Status. Below is an example of what this looks like.

ProductWarehouseStatus
ABCCA1
ABCNY2
ABCTX3
JKLCA1
JKLNY1
JKLTX2
XYZCA1
XYZNY1
XYZTX1

 

Each product can have a different status at each warehouse. I would like to identify all products that are only in status '1'. Simply filtering on the report would give me this table:

ProductWarehouseStatus
ABCCA1
JKLCA1
JKLNY1
XYZCA1
XYZNY1
XYZTX1

 

I don't want to see products 'ABC' or 'JKL' because they are a different status in the warehouses that were filtered out. I only want to see product 'XYZ' because it is only status '1' in every warehouse. Is this possible to filter like this?

 

Thank you!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous ,  Try this measure

 

Measure =

var _overall = countx(filter(allselected(Table), Table[Product] = max(Table[Product] ) ), Table[Product] )

var _st1= countx(filter(allselected(Table), Table[Product] = max(Table[Product] ) && [Status]= 1), Table[Product] )

return

if(_st1= _overall , Max(Table[Status]), Blank() )

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous ,  Try this measure

 

Measure =

var _overall = countx(filter(allselected(Table), Table[Product] = max(Table[Product] ) ), Table[Product] )

var _st1= countx(filter(allselected(Table), Table[Product] = max(Table[Product] ) && [Status]= 1), Table[Product] )

return

if(_st1= _overall , Max(Table[Status]), Blank() )

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.