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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Nick_de_Beijer
New Member

Sort x-axis by time instead of legend (scatter chart) without losing legend colours

Dear community members,

 

I'm quite new to PowerBI but not to SQL/Excel.

 

I want to create a scatter chart in which possible opportunities for big projects in the future are shown (time based on x-axis). These projects are ranked so that they all will have an unique data point in the graph.

Now when I add a field as legend, the graph changes itself and sorts by the different categories known in legend first. I don't want to sort by legend, but I do want to keep the same colours for the categories in legend.

 

I can't seem to combine this.

Does anyone know a solution to this? I did see another similar post but the legend colours weren't saved in the solution...

 

Thanks in advance,

Nick

 

Without legend (sorted by date)Without legend (sorted by date)

 

With legend activated (sorted by legend, date))With legend activated (sorted by legend, date))

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Nick_de_Beijer ,

You can keep "Show blank values" on.

point.PNG

 

Best Regards,

Icey

 

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

8 REPLIES 8
DianeGeo
New Member

What if I can't find the "show blank values" under Y-axis of the format pane?  My last line is "Line Style" and it appears to be partial.  Appreciate knowing any other way to display data sorted by X-axis while showing legend colours.  I'm a new user. Thanks.  Diane

 

 

DianeGeo_0-1611198733437.png

 

I should have scrolled down to see "show blank values".  Time sorting worked!

Icey
Community Support
Community Support

Hi @Nick_de_Beijer ,

You can keep "Show blank values" on.

point.PNG

 

Best Regards,

Icey

 

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

 

superb!

Is it possible to not show the dots in bottom?

@Icey ,

 

Thanks for your time and this sollution, it seems to do the trick!

When I apply the option to show blank values the graph is able to keep the sort option on the x-axis including showing the legend in the same graph.

 

Can you explain me why this option has to be selected?

 

Thanks in advance,

Nick

 

Icey.JPG

 

ibarrau
Super User
Super User

Hi, I try to reproduce this and it is real. It looks like something to report a ticket in support. Anyway, I figure out that the visualization won't work with a legend and a hierarchy. If you have an axis X with date hierarchy you won't be able. It crashes when it has to sort by one of the columns of the hierarchy. It won't sort taking care of the father of it.

 

Hope this helps,

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


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

Happy to help!

LaDataWeb Blog

Ibarrau,

 

Thanks for your time and your reply.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.