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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Rob35
Frequent Visitor

Sorting azure map legend entries by column not working

Hi everyone,

 

I have an issue with the azure map visual regarding the sorting of the legend entries. What I want to do, is sort these entries in the map legend by a fixed order that makes sense (cheapest to most expensive):

 

Rob35_0-1715798321635.png

 

Now, I have read many posts already that seem to have just the right solution to this, which is to sort by another column in the data model. I have managed to do so, but there is no effect of this in the azure map legend entry sorting. I checked with the other map visual (the simple, old one) and with other non-map visuals and it does work for these (see picture below), but like I said, not in the azure map visual.

 

Rob35_1-1715798661485.png

 

I could theoretically switch to the old map visual, but I do want some of the new features of the azure map, so I would like to know if there is something, I am doing wrong or could do differently. Is this a known issue or on purpose with azure maps?

 

Thanks for reading.

3 REPLIES 3
mike_honey
Memorable Member
Memorable Member

For the Azure Map visual, I'm observing the same bug that @Rob35 posted about - Legend sort is driven by the Size field values; it reverts to the regular Sort by column order when the Size field is emptied. 

Other Built-in Power BI visuals eg Bar Chart offer control over Legend sorting by the "..." menu at the top-right corner of each visual's frame. But they only offer to sort asc or desc by the Sort by column.

Sorting any visual's Legend by values is rather odd - can't think when I would want that. The Legend should not attempt to convey information about the values, and dynamically re-sort when slicers etc are used. That will confuse users.  I'll raise a support case. 

Anonymous
Not applicable

Hi @Rob35 ,

 

1. create a new table, write all the categories and write the sort you expect using numbers.

vkaiyuemsft_0-1715828061895.png


2. select the category column and have it sorted by the num column.

vkaiyuemsft_1-1715828072190.png


3. create a relationship for the two tables.

vkaiyuemsft_2-1715828085682.png

 

4. change the fields in the visual object.

vkaiyuemsft_3-1715828097427.png

 

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

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

Hi Clara, thanks for helping me out. I have tried that already and it does not work as in your example. The reason is, that I have another measure as a size measure in the visual. Apparently it is sorted by the sum of the size measure and only when I remove the size measure, does it create the wanted order.

 

Is there a way to have a size measure and still sort the legend by the legend measure?

 

Here are two screenshots to show, what I mean:

Rob35_0-1715933088950.pngRob35_1-1715933158749.png

Kind regards,

Rob

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors