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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Employee
Employee

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
Employee
Employee

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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