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
koorosh
Post Partisan
Post Partisan

bar chart with zero value

Hi all,

How I can avoid bars with zero value in the following chart?

 

koorosh_0-1713687064108.png

 

4 REPLIES 4
AnalyticsWizard
Solution Supplier
Solution Supplier

@koorosh 

 

1. Click on the bar chart to select it.
2. In the 'Visualizations' pane, find and click on the 'Filters' pane.
3. Drag the measure or column you're using for the bar values into the 'Filters on this visual' area.
4. Set the filter type to 'Basic filtering'.
5. Uncheck the box for '0' or move the slider to exclude '0' from the range.

 

This will ensure that the bar chart only displays bars for values greater than zero, effectively removing any bars that would represent a value of zero.

 

Remember, filtering out zero values can sometimes remove important information about the presence or absence of data, which might be relevant for understanding the dataset as a whole. 

MFelix
Super User
Super User

Hi @koorosh,

 

How is you measure calculated? Do you have 0 in your dataset? So that the sum is 0?

 

Try to do a measure similar to:

 

Value = IF(sum(table[column]) <> 0, sum(table[column]))

 

This will return blank when the values are 0.


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



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.

Top Solution Authors