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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Dave82
Frequent Visitor

Show categorical dates with continuous lines?

I have a table with a date hierarchy for the x-axis on the line graph visual.  We are showing monthly averages from each of the plants and want them broken out by year/month categorically.  The issue I'm facing is some of the plants do not always take measurements every month so there are months with no data.  This causes breaks in the line graph.  The business would line to see data points for each line all connected even if there is a month with no data, i.e. say Feb has no measurement, it would connect the Jan avg data point to March's data point. 

 

Basically I see the top graph right now but want it to look like the bottom line chart.  If I switch the x-axis date off from the date hierarchy to just the date column itself, then I get the format option on the x-axis for the type to switch from categorical to continuous which connects all the data point lines.  The problem is then I lose the line chart functonality to drill up/down and expand the date hierarchy with the buttons in the top right of the visual.  Is there a way to keep the categorical drill up/down functionality and connect all the data points with lines?  Not sure if I need to create a separate date table or something. 

 

Dave82_0-1650007833696.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Dave82,

Current you can't use options to keep these data points linked except you remove the legend field. 

For your requirement, perhaps you can write measures to look up the previous results if the current data points that do not exist values and use this measure on the value field. (the previous date point will plot a straight line to the next date point which has values)
Regards,

Xiaoxin Sheng

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Dave82,

Current you can't use options to keep these data points linked except you remove the legend field. 

For your requirement, perhaps you can write measures to look up the previous results if the current data points that do not exist values and use this measure on the value field. (the previous date point will plot a straight line to the next date point which has values)
Regards,

Xiaoxin Sheng

amitchandak
Super User
Super User

@Dave82 , Based on what I got.

1. You can keep it categorical by using the custom columns from your date table

2. I doubt you can make it behave like continuous in categorical axis type

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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