cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
hemingt
Helper V
Helper V

How to change statcked column order?

Hello Team,

 

I have a cloumn named 'status' in my source data table. There are several different values (New, Open, Deliver, Build, Verify, Close).

I use the 'status' to create a stacked column chart to get the count of different status.

The default stacked order is based on the first character of the status value, I want to reorder the stacked, such as move the 'Verify' status to the bottom of the stacked column. Is it possible? Thank you!

1 ACCEPTED SOLUTION
OwenAuger
Super User
Super User

@hemingt 

One way is to create a "Status Index" column (in the Power Query editor).

In your case, you would want the lowest Status Index (say 1) to correspond to Status = "Verify".

 

Then in the Report or Data view, select the Status column, go to Modelling on the ribbon, choose Sort By Column and select Status Index.

 

In a quick test at my end, the Status with the lowest Index appears at the bottom of the stacked column.

 

Does that work for you? Please post back if needed.


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
Twitter
LinkedIn

View solution in original post

4 REPLIES 4
OwenAuger
Super User
Super User

@hemingt 

One way is to create a "Status Index" column (in the Power Query editor).

In your case, you would want the lowest Status Index (say 1) to correspond to Status = "Verify".

 

Then in the Report or Data view, select the Status column, go to Modelling on the ribbon, choose Sort By Column and select Status Index.

 

In a quick test at my end, the Status with the lowest Index appears at the bottom of the stacked column.

 

Does that work for you? Please post back if needed.


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
Twitter
LinkedIn

Perfect! Thank you @OwenAuger 

Anonymous
Not applicable

Isn't 'V' the last letter anyhow? it should be in the edge.

Hi @Anonymous , thank you for your reply.

 

My meaning is that where I can reorder the stacked by myself, such as can I put the Verify status to the mid of the stacked column or anywhere else.

 

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors