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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hello,
Below is my 100% stacked chart.
How can I sort the legend based on the highest value of the column "1 - Réel".
Actually the order is :
1 - Trad : 58%
2 - LS : 5%
3 - Surg : 38%
I want it to be :
1 - Trad : 58%
3 - Surg : 38%
2 - LS : 5%
I do not want the sorting to be done manually, but automatically based on the highest percentage.
Thanks a lot for your help.
Hi @lajthomas,
From your description , it seems that you want to sort by the legend.
By my tests, this feature is not supported currently in Power BI Desktop.
You could vote this similar idea here which has been submitted in Power BI ideas forum.
Best Regards,
Cherry
Hello Cherry,
I don't know if your solution is the best, but I voted for it.
For the Percentage, make sure the column type is Number in Power B. Select the column you want to sort, click Modeling > Sort by Column and then choose sort by Percentage. See if you can get the result you want.
Hello,
Thanks for your reply. But my data is different from what you presented.
Above a screen shot of my data, I have slightly change the legend by removing "1, 2 and 3" in front of it.
The percentage are calculated automatically.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 50 | |
| 46 | |
| 35 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 88 | |
| 76 | |
| 41 | |
| 26 | |
| 26 |