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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Renjith
Helper II
Helper II

Sort issue in X axis Scatter Chart

Hi

This is my dataset. I have sorted days column by order column

My requirement is to create a scatter plot with X axis as days values as result and legend as id , but currently I am facing an issue is x axis values are not coming in a sorted way my current output is

Is there anyway to resolve this

My expected output is

dataset.pngexpected output.pngoutput.png 

 
1 ACCEPTED SOLUTION
v-alq-msft
Community Support
Community Support

Hi,

For your expected output, it is unsupported to use a scatter plot to get expected result. However, it is available to use line chart as a workaround. You can achieve the same  effect by a line chart. The steps are as follows:

1.I sort days column by order column. Make sure the days column is selected and I choose the order column in ‘Sort by column’.

1.jpg

 2.I choose ‘Line Chart’ in Visualizations and configure Axis, Legend, Values :

2.png

 3.Make sure that the ‘Type’ property of X axis in Format is ‘Categorical’ :

3.png

 4. Finally, the result visual will be shown as your expected output.

 

 

Best Regards,

Allan

 

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

View solution in original post

3 REPLIES 3
v-alq-msft
Community Support
Community Support

Hi,

For your expected output, it is unsupported to use a scatter plot to get expected result. However, it is available to use line chart as a workaround. You can achieve the same  effect by a line chart. The steps are as follows:

1.I sort days column by order column. Make sure the days column is selected and I choose the order column in ‘Sort by column’.

1.jpg

 2.I choose ‘Line Chart’ in Visualizations and configure Axis, Legend, Values :

2.png

 3.Make sure that the ‘Type’ property of X axis in Format is ‘Categorical’ :

3.png

 4. Finally, the result visual will be shown as your expected output.

 

 

Best Regards,

Allan

 

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

Anonymous
Not applicable

Hello, I have a similar issue, but I need to use the sizing of dots option in the scatter plot. Therefore, I cannot switch to line chart. Is there a solution for sorting in scatter plot in the meantime? 

Thanks Allan, I m also working on the same

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors