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
Jonathan_25
New Member

Show null line in line diagram for not existent data

*** feel free to answer in English or German ***

Hi Community,

 

I need help with my current Power Bi diagram.

I have a data table giving information about pickup dates and volume/weight information for multiple shipments.

I want to visualize volume and weight by pickup date in a line graph - easily done.

 

Here a picture of what I mean (only volume in this graph):

Jonathan_25_4-1699004997585.png

 

As seen, there is no data between mid/late Dez 23 and early Jan 24.

The line graph fully "ignores" that as the line just connects the values.

I'd need the line to go to 0/null when there is no data instead of just jumping to the next data point.

Null data is not represented as rows in the table so there is no option to calculate an actual 0 when there is no data

 

Anyone has an idea whether there is an option to do this or a setting I missed?

 

Thank you in advance and best regards,

Jonathan

 

1 REPLY 1
rubayatyasmin
Super User
Super User

Hi, @Jonathan_25 

 

Assuming you have a date table created and connected to your fact table. To handle missing data, you need to create a measure like

 

Adjusted Volume =
IF(ISBLANK(SUM('Table'[Volume])), 0, SUM('Table'[Volume]))

 

add this measure to your viz. this should draw a line to 0 at least instead of blank point. 


Did I answer your question? Mark my post as a solution!super-user-logo

Proud to be a Super User!


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