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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
brianmsbc
Frequent Visitor

Data points on a line chart do not connect when you have multiple values you wish to plot

I have two years of weekly data (so i get data once per week for the last two years) and its plotted by Date. I set up the line chart so that its year over year instead of year after year (left to right).

 

2018's data points were all connected but once 2019 began overlapping 2019, the data points are no longer connected. Instead of a line, they are just dots. 

 

After much research i havent found a way to keep the 2018 data points connected to each other and the 2019 data points connected to each other. It seems like because there are breaks in the data (because ites weekly and not daily), there is no way to keep them connected.

Has anyone else run into this issue and were you able to resolve it?

5 REPLIES 5
Greg_Deckler
Super User
Super User

Is your x-axis categorical or continuous? What if you use your Year as a Legend so that you get 2 separate lines?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Thank you. This solved my problem.

I have tried using Year in the legend field with a single value in the Values field... I have also tried using an empty legend field and two value fields (2018 and 2019). They both looked exactly the same when plotted (broken once they begin overlapping).

 

I remember at one point having the option on the X axis to pick Categorical or Continuous, but for some reason it is no longer showing up as an option (its not even greyed out, it just doesnt exist as an option). Does anyone know why that option would be removed from the X Axis list? (its not in the Y axis option list either)

Any way you can provide example/sample data to replicate?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

I created a sample data set and a sample powerBI project but im not sure how to upload it to the thread. Help?

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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