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