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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

New User Question - Sort by Column greyed out

I am making a "lined and stacked column chart" in MS PBI Desktop.

 

I have the "Legend" turned on, and I want the color order in the Legend to match the color order in each part of the stacked column.  This morning I found a PSPBI community post showing how to do this in the Modeling tab, by clicking on Sort by Column.

 

When I attempt the solution on the community post, my Sort by Column icon is greyed out.

 

How do I turn on Sort by Column?

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

@Anonymous,

 

Take a good look at Sort using the Sort by Column button.

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

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

For a pie chart you do not use the 'Sort by Column' button. You need to add the SORT field to Tooltips from Fields on the right.

 

Because it's a sort column you may need to set the field to Average (rather than Sum) or the order will be wrong. To do this click the dropdown to the right of the filed name once it's in the ToolTips box.

 

Then on the Pie chart use the drop down elipsis (...) top right to set that field as the sort order.

 

Also, if the pie seems to show the results in anti clockwise order you need to change your sort order from 1-10 to 10-1 as the Pie Chart shows the largest value first (as most people want to show the largest revenue first).

v-chuncz-msft
Community Support
Community Support

@Anonymous,

 

Take a good look at Sort using the Sort by Column button.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi, Sam

 

Nice work.  That's exactly what I was looking for.  I've noted that your answer came from the Power BI Desktop pane in the Power BI Documentation site.  Will make a point to reference that in the future.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.