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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Show full range on X-Axis of Bar Graph, even with 0 value data.

I've tried using 'Show items with no data', as well as a solution proposed in another thread:

Measure = 

  VAR __Calc = <Calculation>

RETURN

  IF(ISBLANK(__Calc),0,__Calc)

 

 

Neither of these options worked. Here is a screenshot of my calculation and screenshot.VBDA_0-1674838995356.png

This was my solution to show an hourly graph that (is supposed to) start at 6pm and end at 5am. This graph should start at 18 (6pm), but because the value for that time is 0, it's not showing up, but I need it to.

 

Thank you!

3 REPLIES 3
tamerj1
Super User
Super User

Hi @Anonymous 

please try

IF (

ISEMPTY ( 'Table' ),

0,

<calculation>
)

Anonymous
Not applicable

Hey @tamerj1 ,

Thanks for the suggestion, but it's showing the same result as when I used ISBLANK()

@Anonymous 

Apparently these records do not even exist in the data. Therefore you need a dim table that contains the full range (from 18 to 29)

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.