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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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