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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.