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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Saipreethi
Helper I
Helper I

Removing Zero valued NA rows which are measures

Hi Everyone,

 

I have a table with Clients and sub category of Countries with all 15 measure columns. I want to remove countries which have zero values in all columns. Can anyone help with logic. I have implemented by taking every measure as Variable and applied "AND" condition between them and kept that column in table and applied visual level filter. But I am missing something in the above. Need help!

Saipreethi_0-1663169877489.png

 

 

2 ACCEPTED SOLUTIONS
v-yueyunzh-msft
Community Support
Community Support

Hi, @Saipreethi 

According to your descriptionAccording to your description, you want to not display data where all columns are 0. Right?

Here are the steps you can follow:

(1)This is my test data:

vyueyunzhmsft_0-1663223303239.png

 

(2) To simulate the measure you said, on my column I put 3 measures that I created:

vyueyunzhmsft_1-1663223303240.png

 

(3)We can create a measure : “isDisplay”

isDisplay = IF( [Actuals2]=0 && [Budget2]=0 && [Detial2]=0 , -1,1)

(4)We can put the [isDisplay] in the “Filter on this visual” and configure it , and then click “Apply Fillter”:

vyueyunzhmsft_2-1663223303246.png

 

 

 

If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem.

 

Best Regards,

Aniya Zhang

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

Hi, @Saipreethi 

You want to hide the value with sublevel 0. Right?

 (1)This is my test data:

vyueyunzhmsft_0-1663227474397.jpeg

 

(2)We can use the ISINSCOPR() function to judge the level:

isDisplay = IF( ISINSCOPE('Sheet2'[item2])&&[Actuals2]=0&&[Budget2]=0&&[Detial2]=0,-1,1)

 

If my understanding is inconsistent with your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem.

 

Best Regards,

Aniya Zhang

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

4 REPLIES 4
v-yueyunzh-msft
Community Support
Community Support

Hi, @Saipreethi 

According to your descriptionAccording to your description, you want to not display data where all columns are 0. Right?

Here are the steps you can follow:

(1)This is my test data:

vyueyunzhmsft_0-1663223303239.png

 

(2) To simulate the measure you said, on my column I put 3 measures that I created:

vyueyunzhmsft_1-1663223303240.png

 

(3)We can create a measure : “isDisplay”

isDisplay = IF( [Actuals2]=0 && [Budget2]=0 && [Detial2]=0 , -1,1)

(4)We can put the [isDisplay] in the “Filter on this visual” and configure it , and then click “Apply Fillter”:

vyueyunzhmsft_2-1663223303246.png

 

 

 

If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem.

 

Best Regards,

Aniya Zhang

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

Hi, 
It is not going to the sub category level of country when I apply the above condition. You can check the screenshot after applying the condition also im getting 0's,Nulls and NA. Firstly It has to go to client and maximize it for country level and then go to country level and then the condition has to be applied. Could you please me with this.

Saipreethi_0-1663224421808.png

 



Hi, @Saipreethi 

You want to hide the value with sublevel 0. Right?

 (1)This is my test data:

vyueyunzhmsft_0-1663227474397.jpeg

 

(2)We can use the ISINSCOPR() function to judge the level:

isDisplay = IF( ISINSCOPE('Sheet2'[item2])&&[Actuals2]=0&&[Budget2]=0&&[Detial2]=0,-1,1)

 

If my understanding is inconsistent with your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem.

 

Best Regards,

Aniya Zhang

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

tamerj1
Super User
Super User

Hi @Saipreethi 

you can create a filter measure and place it in the filter pane and select "Is blank" then apply the filter. 
Filter Measure = IF ( [Measure1] = 0 && [Measure2] && [Measure3] && .........., 1 )

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.