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

Show 0 when no data in clustered column chart

I have a clustered column chart with one filed on the X-axis and two measures. Example below:

Screenshot 2024-09-20 at 5.37.32 PM.png

 

If there's value either for Sales or Target, but not for both measures I would like to show 0 instead of nothing (e.g. 0 for Banana target and 0 for Plum Sales).

What I've tried so far:

1) Sales Target = SUM ( 'Table'[Target] ) + 0
2) Sales Target = COALESCE ( SUM ( 'Table'[Target] ), 0 )
But then I achieve this:
Screenshot 2024-09-20 at 5.40.12 PM.png
I do not want to show values on the X-axis where both measures have no data (e.g. Orange, Pineapple).

Unfortunately "Show blank as" 0 under Data labels Value setting also does not work

Any insights would be appreciated
4 REPLIES 4
Anonymous
Not applicable

Hi @mrbartuss 

 

Thank you very much sevenhills for your prompt reply.

 

It seems that the method provided by sevenhills is suitable for your situation. Can you tell me if your problem is solved? If yes, please accept it as solution.

 

Regards,

Nono Chen

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

 

 

 

Unfortunately, it solved my problem only partially 

sevenhills
Super User
Super User

Try this, 

 

add a measure

Is Zero Check = IF( [Sales Target] = 0 && [Total Sales] = 0, 1, BLANK())

 

Expand or view filters pane

Drag this measure and set the filter as "Is Zero Check" is blank.

sevenhills_1-1726848953535.png

 

You get the ouput as below:

sevenhills_0-1726848902219.png

Hope it helps!

Thank you! It works, but it seems 0 has to be added to the Sales and Target measures. They are also used on other pages and visuals. As measure cannot be added as a report or even page level filter I would have to use it on all the visuals. Are there any better solutions just for the chart?

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.