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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.

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
May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.