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

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

Reply
steambucky
Helper III
Helper III

Custom sort of clustered bar chart attributes

This is my clusted bar chart - I want to change the order of the bars. Not alphabectically. My own specific order. 

 

 

 

2019-11-15 11_37_49-ODMA - Power BI Desktop.png

This is my data. 

 

AttributeValue

Data release process4
Standards development & adoption3
Data governance5
Managing sensitive data5
Open data expertise1
Knowledge management5
Engagement process2
Open data documentation5
Re-user support processes2
Community norms4
Financial Oversight3
Dataset Valuation Process1
Open Data in Procurememnt2
Open data strategy4
Asset catalogue5
Data release process3
Standards development & adoption5
Data governance5
Managing sensitive data5
Open data expertise4
Knowledge management4
Engagement process2
Open data documentation1
Re-user support processes2
Community norms1
Financial Oversight3
Dataset Valuation Process1
Open Data in Procurememnt2
Open data strategy3
Asset catalogue5

 

Any idea? Tutorials? 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

 

Hi @steambucky ,

 

The only way we can do custom sorting in power bi is by creating conditional column in query editor or by creating new column using switch or if function,

I suggest you to create a conditional column in query editor on top of your dimension such as

In Query editor goto add column ->conditional column->choose column name. here in your case it's category.

Ex: Category ->equals->Data release process ->1

     Category ->equals->Standards development & adoption ->2

     ...

     ..

    Category ->equals->Asset catalouge ->30.

 

After creating conditional column save the changes in query editor and goto data view and choose the Category column ->Modelling->Sort by column->Custom Sort.

Then switch to report view and see the expected results.

 

Accept it as a solution if this works for you.

 

 

   

 

View solution in original post

3 REPLIES 3
v-frfei-msft
Community Support
Community Support

Hi @steambucky ,

 

We can srot the visual by value as below.

Capture.PNG

 

For more details, please check the pbix as attached.

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

 

Thanks, but I want to sort by placing the rows in an order of my choosing. I dont want sort them by numerical or alphabetical order. 

 

Anyone else have any idea? 

Anonymous
Not applicable

 

Hi @steambucky ,

 

The only way we can do custom sorting in power bi is by creating conditional column in query editor or by creating new column using switch or if function,

I suggest you to create a conditional column in query editor on top of your dimension such as

In Query editor goto add column ->conditional column->choose column name. here in your case it's category.

Ex: Category ->equals->Data release process ->1

     Category ->equals->Standards development & adoption ->2

     ...

     ..

    Category ->equals->Asset catalouge ->30.

 

After creating conditional column save the changes in query editor and goto data view and choose the Category column ->Modelling->Sort by column->Custom Sort.

Then switch to report view and see the expected results.

 

Accept it as a solution if this works for you.

 

 

   

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.