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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Super User
Super User

@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

 


@ 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!:
The Definitive Guide to Power Query (M)

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
Super User
Super User

@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

 


@ 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!:
The Definitive Guide to Power Query (M)

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

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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