cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
jlworthi
Regular Visitor

Order of Stacked Bar char

I have a single stacked bar chart of level of education. Currently Power Bi displays it across in alphabetical order (college, graduate school high school technical). I would like it ordered by logical progression (technical, high school, college, graduate). How do I sort the order of a stacked bar chart? 

2 ACCEPTED SOLUTIONS
ibarrau
Super User
Super User

Hi. When you select the columns in formating tab you can select the order by of this column. If you don't have any other column to help this order you want, add a new one responding if technical, new column = 1 if high school new column=2.... Then order the school columns by the new column.

 

Regards,

 

P/D You can create a new table with column NroOrder|School -> 1|high school and the relate it with yours. Same procedure with order.


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

View solution in original post

v-yulgu-msft
Microsoft
Microsoft

Hi @jlworthi,

 

To add to what ibarrau suggested, you need to create the custom column in Query Editor mode, rather than creating a calculated column with DAX formula.

 

Here is a link describing with detailed steps for your reference: Sort by another column error

 

Regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
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

2 REPLIES 2
v-yulgu-msft
Microsoft
Microsoft

Hi @jlworthi,

 

To add to what ibarrau suggested, you need to create the custom column in Query Editor mode, rather than creating a calculated column with DAX formula.

 

Here is a link describing with detailed steps for your reference: Sort by another column error

 

Regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
ibarrau
Super User
Super User

Hi. When you select the columns in formating tab you can select the order by of this column. If you don't have any other column to help this order you want, add a new one responding if technical, new column = 1 if high school new column=2.... Then order the school columns by the new column.

 

Regards,

 

P/D You can create a new table with column NroOrder|School -> 1|high school and the relate it with yours. Same procedure with order.


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors