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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Krushnab85
Helper I
Helper I

Scatter chart X axis sorting issue

Hi I am using a scatter chart, i placed Date on X axis, Count of orders on Y axis, Days from order to ship in the legend, Count of orders in the size. But the visual is not sorting as per date, I have done sorting with header icons, with sort by column options and many more but i am not getting the answer. I need this data by sorting by date in ascending order

1 ACCEPTED SOLUTION

Hi @Krushnab85 

Apologies for the delayed response, I had a busy day.

The sorting issue is caused by the clustering of shipping days.
Without it , the sort order is correct:

Ritaf1983_0-1704471874030.png

 

The last two points are outliers in terms of the clustering that the graph performs, and that's why you're not able to sort properly, unfortunately, there is no way to fix it.

In the past, we had a categorical scatter plot for these purposes, but unfortunately, it no longer exists.

You can try to replace this graph with a line graph with only markers (no lines). Of course, you won't be able to affect the size of the points, but you will be able to show the division by colors as you are doing here.
Please refer to the linked discussion for more information.

https://community.fabric.microsoft.com/t5/Desktop/Scatter-chart-two-data-points-not-in-date-order/td...

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

4 REPLIES 4
Ritaf1983
Super User
Super User

Hi @Krushnab85 
I replicated your scenario on my data and it worked correctly :

Ritaf1983_0-1704351058126.png

make sure that the data type of the date column is date:

Ritaf1983_1-1704351111225.png

and try to compare our files.
If it still doesn't work share a link to your pbix

My example is attached.

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Hi, I tried to solve but its not working, Please find link of pbix and help me out. Thank you for your attention


Hi @Ritaf1983  Any suggestion or solution over this?

Hi @Krushnab85 

Apologies for the delayed response, I had a busy day.

The sorting issue is caused by the clustering of shipping days.
Without it , the sort order is correct:

Ritaf1983_0-1704471874030.png

 

The last two points are outliers in terms of the clustering that the graph performs, and that's why you're not able to sort properly, unfortunately, there is no way to fix it.

In the past, we had a categorical scatter plot for these purposes, but unfortunately, it no longer exists.

You can try to replace this graph with a line graph with only markers (no lines). Of course, you won't be able to affect the size of the points, but you will be able to show the division by colors as you are doing here.
Please refer to the linked discussion for more information.

https://community.fabric.microsoft.com/t5/Desktop/Scatter-chart-two-data-points-not-in-date-order/td...

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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