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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
daircom
Resolver II
Resolver II

How to have a gap in a line chart where there are null values

Hi all,

 

I have a graph based on data which has null values. However, I need the graph to simply show a gap where there are null values, instead of interpolating the graph by a straight line. 

The solution I come accross on this forum requires to turn the x-axis from continious to categorical. This solution does not work for me as the x axis has hourly data and when set to categorical it becomes unreadable. 

 

To summarize: how to show a gap in my line graph where there are null values without setting the x-axis from continious to categorical?

 

I don't want:

 

daircom_0-1730454430122.png

 

I want it to look like (done with paint):

daircom_1-1730454607281.png

 

 

 

2 ACCEPTED SOLUTIONS
lbendlin
Super User
Super User

You could use a categorical axis type but that would lose the auto hierarchy.

View solution in original post

Anonymous
Not applicable

Hi,

Thanks for the solutions bendlin  and SamWiseOwl  offered, and i want to offer some more information for user to refer to.

hello @daircom , if you want to implement the null value without lines, you need to change the the x-axis from continious to categorical, and you said the that your x-axis is date/time, you can add a new colunn in table to just extract the date from the date/time field.

 

Column = DATEVALUE([Date])

 

Then put the new column to axis, and set it to categorical, and clixk the x-axis, and select 'show item with no data' it can work.

vxinruzhumsft_0-1730686807071.png

 

Output

vxinruzhumsft_1-1730686815441.png

 

 

 

 

Best Regards!

Yolo Zhu

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

3 REPLIES 3
Anonymous
Not applicable

Hi,

Thanks for the solutions bendlin  and SamWiseOwl  offered, and i want to offer some more information for user to refer to.

hello @daircom , if you want to implement the null value without lines, you need to change the the x-axis from continious to categorical, and you said the that your x-axis is date/time, you can add a new colunn in table to just extract the date from the date/time field.

 

Column = DATEVALUE([Date])

 

Then put the new column to axis, and set it to categorical, and clixk the x-axis, and select 'show item with no data' it can work.

vxinruzhumsft_0-1730686807071.png

 

Output

vxinruzhumsft_1-1730686815441.png

 

 

 

 

Best Regards!

Yolo Zhu

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

lbendlin
Super User
Super User

You could use a categorical axis type but that would lose the auto hierarchy.

SamWiseOwl
Super User
Super User

Hi @daircom 

If the problem was at a higher level like Year and Month you can use a calendar table.

This won't show items with no data at first.

By forcing it show items with no data you for the gaps

 

SamWiseOwl_1-1730457868028.png

 

SamWiseOwl_0-1730457851485.png

 


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.