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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Sorting legend by alphabet in a tree map

How to sort the legend values by alphabetically in a tree map? tree.jpg

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

Hi, @Anonymous 

TreeMap is only sorted by the size of 'Value'.

As a workaround, you can create a sort column in the PowerQuery Editor and apply it to 'Value' of TreeMap, then add the original "value" field to the 'Tooltip'.

1)sort column ‘Type’ in ascending order

84.png

85.png

 

2) add an index column

86.png

Result:

90.png

 

Best Regards,
Community Support Team _ Eason

View solution in original post

2 REPLIES 2
v-easonf-msft
Community Support
Community Support

Hi, @Anonymous 

TreeMap is only sorted by the size of 'Value'.

As a workaround, you can create a sort column in the PowerQuery Editor and apply it to 'Value' of TreeMap, then add the original "value" field to the 'Tooltip'.

1)sort column ‘Type’ in ascending order

84.png

85.png

 

2) add an index column

86.png

Result:

90.png

 

Best Regards,
Community Support Team _ Eason

amitchandak
Super User
Super User

@Anonymous , I doubt there is an option for that. Usually, sort option is there in three dots

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.