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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Rakesh_508
Helper I
Helper I

barchart - measures

Hello,

 

I am using two measures in a bar chart for displaying values of goals orders count and completed count and in the x axis, stations values are displaying like A B C D E.....

The values in bar chart will filtered upon the some slicer selection.

 

My requirement is that, I would like to show only non zeroes count , if both goal and completed has 0 and 0 then those ones should not show in the chart.

But in the visual filter level , if I filter goal >0, all goal counts which are 0 are not showing but in those some of them have completed numbers and they are going off too alongwith goal and its vice versa with completed measure as well...

 

How do we achieve this one like exclude the stations which are both having count goal and completed 0???

 

Thanks 

1 ACCEPTED SOLUTION
dk_dk
Super User
Super User

Hi @Rakesh_508 

You could try to create a third measure that looks something like this:

Measure 3 = IF([Measure 1]=0 && [Measure 2]=0,"filter","keep")

 

You can then add this measure as a visual level filter on your chart, and configure Show items when the value is "keep".

Let me know if this works for you.

Best regards,
Daniel




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

2 REPLIES 2
dk_dk
Super User
Super User

Hi @Rakesh_508 

You could try to create a third measure that looks something like this:

Measure 3 = IF([Measure 1]=0 && [Measure 2]=0,"filter","keep")

 

You can then add this measure as a visual level filter on your chart, and configure Show items when the value is "keep".

Let me know if this works for you.

Best regards,
Daniel




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





@dk_dk  I did the same but instead of =0 , Im trying to use<>0.. thats why its not working for me....
Thanks, your solution worked for me....

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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