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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
JFG123
Frequent Visitor

Scatter plot does not respect the difference of dates on the x axis

I am trying to create a scatter graph of a continuous y variable (date) as the x-axis. As you can see below, the default scatters graph does not respect the difference between dates like the line graph does.

 

Scatter graph:

JFG123_0-1616139503353.png

 

Exact same data using line graph and aggregation set to minimum value:

JFG123_1-1616139531946.png

 The line graph gets the correct result with the spacing of the dates, how can I do this for the scatter graph?

 

 

1 ACCEPTED SOLUTION
PhilipTreacy
Super User
Super User

Hi @JFG123 

Download sample PBIX file with the data and charts shown below

Dates are not continuous, they are discrete. You can only have fixed values for dates,they can't be half way between one date and another date.

Scatter charts plot the data you give them so you are seeing the discrete date values plotted on the x-axis.

If you are missing dates then these are omitted from the plot.

In this image the top visual has data for every date between the first and last dates, the bottom visual does not

scatter2.png

regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

2 REPLIES 2
PhilipTreacy
Super User
Super User

Hi @JFG123 

Download sample PBIX file with the data and charts shown below

Dates are not continuous, they are discrete. You can only have fixed values for dates,they can't be half way between one date and another date.

Scatter charts plot the data you give them so you are seeing the discrete date values plotted on the x-axis.

If you are missing dates then these are omitted from the plot.

In this image the top visual has data for every date between the first and last dates, the bottom visual does not

scatter2.png

regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


amitchandak
Super User
Super User

@JFG123 , Seems like scatter visual does not provide Axis type option - Continous. This option is there online not in scatter.

This because scatter we need show discrete values

 

Axis_type.png

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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