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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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