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
adam_macs
Helper I
Helper I

Filter out rows

Hi, I’m trying to figure out how to filter our Trusts with a "Count of Mat Customers" = Blank but show the entire Trust and its Establishments if it has at least 1 "MAT Customer".
So, from the example, i want to show Zenith Multi Academy Trust and all the Establishments within that Trust because it has one MAT customer in it. But i would like to filter out "1Excellence Multi Academy Trust" and "5 Dimensions Trust" as they have no MAT customers.
So essentially, if Trust contains >=1 Mat customer show entire trust and all its establishments else filter it out.
Unfortunately, i have no idea what DAX command or how to go about this. Im thinking some kind of IF statement maybe? Any assistance much appreciated.

adam_macs_1-1660302512870.png

 

1 ACCEPTED SOLUTION
v-jianboli-msft
Community Support
Community Support

Hi @adam_macs ,

 

Based on your description, I have created a simple sample:

vjianbolimsft_0-1660814439659.png

 

Then create a measure to help filter the data:

Flag = IF(ISBLANK( CALCULATE(COUNT('Table'[MAT Coustomers]),FILTER(ALL('Table'),[Trust]=MAX('Table'[Trust])))),0,1)

Apply it to the visual:

vjianbolimsft_1-1660814529724.png

Then filter the data:

vjianbolimsft_2-1660814601176.png

Final output:

vjianbolimsft_3-1660814619503.png

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

View solution in original post

3 REPLIES 3
v-jianboli-msft
Community Support
Community Support

Hi @adam_macs ,

 

Based on your description, I have created a simple sample:

vjianbolimsft_0-1660814439659.png

 

Then create a measure to help filter the data:

Flag = IF(ISBLANK( CALCULATE(COUNT('Table'[MAT Coustomers]),FILTER(ALL('Table'),[Trust]=MAX('Table'[Trust])))),0,1)

Apply it to the visual:

vjianbolimsft_1-1660814529724.png

Then filter the data:

vjianbolimsft_2-1660814601176.png

Final output:

vjianbolimsft_3-1660814619503.png

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

daXtreme
Solution Sage
Solution Sage

Use the filter pane for the visual.

Unfortunately that wont work either as it removes the other establishments within the trust

adam_macs_0-1660309221832.png

 

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 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.