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

Filter zero from all rows except one

The measure below is a filter to remove all zero values in my matrix, but since I am using the Financial Reporting Matrix by Profitbase I need to remove one row value from the filter. Any suggestions as to how I can apply these conditions on 'table.value <> something'?

 

Remove zeros = IF(AND(AND([Measure 1]=0,[Measure 2]=0),AND([Measure 3]=0,[Measure 4]=0)),0,1)
4 REPLIES 4
amitchandak
Super User
Super User

@Petsnell you can use <>

example

IF([Measure 1]=0 && [Measure 2]=0 && [Measure 3]=0 && [Measure 4]<> 0,0,1)

 

also you can use && in place of AND(

IF([Measure 1]=0 && [Measure 2]=0 && [Measure 3]=0 && [Measure 4]=0,0,1)


 

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

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

@amitchandak Thank you for answering so quickly. Please apologize my terrible example below, I will add on this if necessary. 

In short, I want to remove row values that equal zero in the measures listed above except for the second last row in the picture, let's call it 'table.example' with value = F. 

 

Petsnell_1-1615989217260.png

 

 

@Petsnell , removing a row while creating a measure(means table row) is much different from removing a row(visual table) where a measure is 0 or blank. 

 

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

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

Sample file.

 

In short, I want to see R&D, but hide operations and other rows where all columns might be 0. 

 

Petsnell_0-1615994332577.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!

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.