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
Anonymous
Not applicable

Display Zeros on Bars

Hi 

 

I am trying to create a bar chart where in for some of the weeks/months there is no data however, I would like to display 0 instead of blank. Please help if there any options or workaround.

 

ivamsikrishna_0-1612879014744.png

 

Thanks,

Krishna.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

In the column chart zero would be no column in the x-axis.

If you just want to show 0 as lable as well as the other column, then you could create a formula and add +0 at the end of it.

Measure = SUM('Table'[Column2])+0

8.PNG 

 

Best Regards,

Jay

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

 

In the column chart zero would be no column in the x-axis.

If you just want to show 0 as lable as well as the other column, then you could create a formula and add +0 at the end of it.

Measure = SUM('Table'[Column2])+0

8.PNG 

 

Best Regards,

Jay

amitchandak
Super User
Super User

@Anonymous , +0 in measure can help , but it will show all dates , Try like this example

 

0 between range
new  Measure = var _1= [measure]+0
var _min = minx(ALLSELECTED('Calendar'), 'Calendar'[Date])
var _max = maxx(ALLSELECTED('Calendar'), 'Calendar'[Date])
return
CALCULATE(if(max('Calendar'[Date]) <_min || max('Calendar'[Date]) >_max , BLANK(), _1))

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.