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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
lajthomas
New Member

Sort 100% Stacked Column Chart by Percentage Value

Hello,

 

Below is my 100% stacked chart.

 

Croquis.png

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.

4 REPLIES 4
v-piga-msft
Resident Rockstar
Resident Rockstar

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

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hello Cherry,

 

I don't know if your solution is the best, but I voted for it.

Anonymous
Not applicable

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.

2018-03-19_9-37-33.png

 

 

 

Hello,

 

Thanks for your reply.  But my data is different from what you presented.

 

 Croquis.png

 

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.

Helpful resources

Announcements
Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors