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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.