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
meghansh
Frequent Visitor

Showing Label when value is 0

I have a bar graph with one value as 0. As I change the label orientation to "vertical" and position to "inside" the label with value "0" disappears because of having no bar to represent data. I still want to display that "0" value. How to achieve that? Thanks

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @meghansh ,

 

Maybe you can try formula like below, then use it to column value:

DisplayValue = 
IF(
    MAX('Table'[Value])= BLANK(),
    0,
    MAX('Table'[Value])
)

vkongfanfmsft_0-1734595548037.png

vkongfanfmsft_1-1734595598835.png

vkongfanfmsft_2-1734595623075.png

 

Best Regards,
Adamk Kong

 

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

5 REPLIES 5
Kedar_Pande
Super User
Super User

@meghansh 

Unfortunately, Power BI hides labels for zero values when there's no visible bar.

Make sure that your bars are still showing even when the value is 0. If bars are completely hidden for 0 values, try adding a small minimum value (like 0.001) in the data preparation step to create a visible bar for the zero value.

💌 If this helped, a Kudos 👍 or Solution mark would be great! 🎉
Cheers,
Kedar
Connect on LinkedIn

Anonymous
Not applicable

Hi @meghansh ,

 

Maybe you can try formula like below, then use it to column value:

DisplayValue = 
IF(
    MAX('Table'[Value])= BLANK(),
    0,
    MAX('Table'[Value])
)

vkongfanfmsft_0-1734595548037.png

vkongfanfmsft_1-1734595598835.png

vkongfanfmsft_2-1734595623075.png

 

Best Regards,
Adamk Kong

 

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

 

POSPOS
Post Partisan
Post Partisan

@meghansh  - Try if this will resolve your issue:

 

Step 1 : This is my data

POSPOS_1-1734554210143.png

 

Step 2: Plot the data in a bar chart. By default data with null values will not show up.

POSPOS_2-1734554256336.png

 

Step 3: Enable "Show items with no data" to show data with 0 values.

POSPOS_5-1734554490622.png

 

 

Step 5 : Change the formatting options:

 

POSPOS_4-1734554453243.png

 

Hope this helps.

l

Hi @meghansh 
That's just how the label behaves. There's just not enough space for the label to fit inside the column. I've looked into some custom viz but they still behave the same.

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

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


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
Bibiano_Geraldo
Super User
Super User

Hi @meghansh, please give more context, paste here the DAX used to calculate that value, include screenshot if necessary.

 

 

 

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.