Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
How to sort the legend values by alphabetically in a tree map?
Solved! Go to Solution.
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
2) add an index column
Result:
Best Regards,
Community Support Team _ Eason
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
2) add an index column
Result:
Best Regards,
Community Support Team _ Eason
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!