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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
OLM
Helper I
Helper I

Scatter Plot: Legend added destroys the x-axis date order

Good day,

 

I have the following scatter plot:

y-asix: whole number

x-asix: date (hirerachy)

size: whole number (same field as the y-asix).

Legend: categories of client names(text).

 

Once I put the legend is distroys the date order. 

 

None of the search online has yielded any solution.

 

PLease advise.

 

As this is business content, I cannot share print screens.

 

Thank you for your educational enlightment. 

 

6 REPLIES 6
dk_dk
Super User
Super User

Hi @OLM ,

After you added the legend, click on the ... in the corner, Sort by, and select your date field.

dk_dk_0-1719412819172.png



For some reason the default behavior seems to be that the legend takes priority over the X-axis in this chart.


Hope this helps!


Best regards,
Daniel

 




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Thank you dear Daniel, I have tried pre-posting here. I wish it was that easy. I am glad you may be helping others in pointing it out. When wanting to sort, it ignores it. Nothing happens sadly.

That's strange. If you can maybe upload a .pbix with your data, or a representative sample, I can have a look. Could be something with the datatypes being incorrect such that the sorting does not work as intended?




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Sadly I cannot upload dummy data seeing it is highly confidential. Using x-asix date field did not work seeing the sorting was non-reactive. Now the x-asix is a text field date ("mmm-yy") which is sorted by a sortby integer column. And as mentioned, when I press "show as table" the order is kept perfectly, but not in the visual.

Can you try to add the sortby integer column to the visual, in the tooltips section, and see if you can sort the visual by that column, as per my screenshot?




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Tried to sortby by integer field. Problem is that the legend takes over as ruling sorter and it is impossible to change.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.