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
Anonymous
Not applicable

Connect dots to make line for missing categorical data in line chart

Hello, is there a way to connect the grey dots in the picture below? I am currently using categorical data because I need to display the x-axis by week.

 

categorical.PNG

 

 

 

 

 

 

 

I can change the data to continuous to connect the grey dots, but that creates another issue. The grey data is actually by month, that is why there is a data point every four weeks and missing data points in between those four weeks. Here is what the chart looks like when I change the data type to continuous.

 

 

Continuous.PNG

 

I need the x-axis to display weeks, not months. Basically, I need the x-axis to look like the first graph and the lines to look like the second graph. I am getting the data from a SQL database and would like to avoid creating fake data points in SQL if possible.

 

Thanks!

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

@Anonymous - It is theoretically possible to get the best of both categorical and continuous. See attached PBIX file below sig, Page 3. You need to create a measure to fill in the gaps. If you want to get fancy, you can use Interpolation. https://community.powerbi.com/t5/Quick-Measures-Gallery/Linear-Interpolation/m-p/330712#M88

Greg_Deckler_0-1599614724177.png

 



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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

3 REPLIES 3
Icey
Community Support
Community Support

Hi @Anonymous ,

 

Can what @Greg_Deckler mentioned meet your requirements?

 

 

Best Regards,

Icey

Greg_Deckler
Community Champion
Community Champion

@Anonymous - It is theoretically possible to get the best of both categorical and continuous. See attached PBIX file below sig, Page 3. You need to create a measure to fill in the gaps. If you want to get fancy, you can use Interpolation. https://community.powerbi.com/t5/Quick-Measures-Gallery/Linear-Interpolation/m-p/330712#M88

Greg_Deckler_0-1599614724177.png

 



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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
amitchandak
Super User
Super User

@Anonymous , I do you can gets of both worlds. 

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