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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Clout
Helper III
Helper III

Don't connect dots in line chart if value is null

Hello,

 

I have a data set which some gaps in it -> value null. Is there a way to dont connect the dots in a line chart when plotted, so its not assuming that data is there?

 

I would have there a gap in the line chart where the line is crossed:

 

Unbenannt.PNG

 

Thanks in advance!

1 ACCEPTED SOLUTION
v-yingjl
Community Support
Community Support

Hi @Clout ,

Change the type of X-axis to 'Categorical' and enable 'Show items with no data' for the Date field.

x.pngno data.pngre.png

 

Best Regards,
Community Support Team _ Yingjie Li
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
EHA_SD
Advocate I
Advocate I

This is great, but how do you make the categorical axis then fit to the available space within the visual? With a continuous axis it auto-fits, with a categorical axis it does not auto-fit and it adds a horizontal scroll bar instead.

EHA_SD_0-1674010632615.png

 

v-yingjl
Community Support
Community Support

Hi @Clout ,

Change the type of X-axis to 'Categorical' and enable 'Show items with no data' for the Date field.

x.pngno data.pngre.png

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Clout , I doubt that in line visual. But try with axis type categorical

 

Axis_type.png

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

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.