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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

sort a scatterplot by legend

Hello! I am trying to make my scatterplot be displayed in alphebetical roder by provider_name. I added the name dimension to the legend, but it seems to be sorting the x-axis by provider name, and then also by the name (of the practice).

How can I just make it alphabetical by provider_name? That way all of the name(practice) colors are all scattered.

nattiej101_0-1617127129493.png

nattiej101_1-1617127138225.png

 

I've tried clicking on the three dots to sort, but these are the options it gives me. WHen I click on revenue it does the same thing (sorting by revenue AND by practice name)

 

nattiej101_2-1617127158604.png

 


Thanks in advance!

 

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

Hi, @Anonymous 

Where does your problem exist? I’ve also created some data and make some tests, then I found that it’s sorted alphabetically by [provider_name] if I selected the “Sort by [provider_name]” and didn’t place any field in the “Name” of the chart. When I placed the field in the “Legend”, the “Sort by” doesn’t work, it’s now sorted by the value in the “Legend” field.

v-robertq-msft_0-1617611891743.png

v-robertq-msft_1-1617611891752.png

 

As a result, I suggest you to remove the field in the “Legend” field of this chart if it’s possible. Or you can place a rank column to rank the [provider_name] alphabetically and place it into the “Legend” field of this chart.

Rank = RANKX('Table',[Provider name],,ASC,Dense)

And you can get what you want.

 

You can download my test pbix file here

Thank you very much!

 

Best Regards,

Community Support Team _Robert Qin

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-robertq-msft
Community Support
Community Support

Hi, @Anonymous 

Where does your problem exist? I’ve also created some data and make some tests, then I found that it’s sorted alphabetically by [provider_name] if I selected the “Sort by [provider_name]” and didn’t place any field in the “Name” of the chart. When I placed the field in the “Legend”, the “Sort by” doesn’t work, it’s now sorted by the value in the “Legend” field.

v-robertq-msft_0-1617611891743.png

v-robertq-msft_1-1617611891752.png

 

As a result, I suggest you to remove the field in the “Legend” field of this chart if it’s possible. Or you can place a rank column to rank the [provider_name] alphabetically and place it into the “Legend” field of this chart.

Rank = RANKX('Table',[Provider name],,ASC,Dense)

And you can get what you want.

 

You can download my test pbix file here

Thank you very much!

 

Best Regards,

Community Support Team _Robert Qin

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

Anonymous
Not applicable

@v-robertq-msft - when I did this, this is the error message that I got.... what should I do now?

nattiej101_0-1617629835806.png

 

Anonymous
Not applicable

Nevermind!  I realized you have to add this as a new column to your table - not make a new measure!  Thanks so much!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.