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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
Anonymous
Not applicable

Custom Sort Order Issues

Hello! Relatively new to Power BI but i'm working on a project where i need to create a report with multiple slicers to help merchandisers see the shape of sales across sizes. 

 

However, because i have multiple product types, genders and hundred of custom size descriptions i'm trying to create a custom sort order to show them in the right way. I've gone through the steps as per a guide i found BUT when i hit the "sort by column" it isn't doing anything? My graph still appears in a weird order rather than say XS, S, M, L, XL its still appearing in alphabetical rather than my defined custom order?

 

I feel like i'm doing something very obvious wrong

1 ACCEPTED SOLUTION
v-kelly-msft
Community Support
Community Support

Hi @Anonymous ,

 

Create a custom column as below:

vkellymsft_0-1630315538193.png

Then  make type column sort by this column:

vkellymsft_1-1630315596095.png

And you will see that it is ranking as wished:

vkellymsft_2-1630315648901.png

For the related .pbix file,pls see attached.

 

Best Regards,
Kelly

Did I answer your question? Mark my areply as a solution!

View solution in original post

3 REPLIES 3
v-kelly-msft
Community Support
Community Support

Hi @Anonymous ,

 

Create a custom column as below:

vkellymsft_0-1630315538193.png

Then  make type column sort by this column:

vkellymsft_1-1630315596095.png

And you will see that it is ranking as wished:

vkellymsft_2-1630315648901.png

For the related .pbix file,pls see attached.

 

Best Regards,
Kelly

Did I answer your question? Mark my areply as a solution!

jennratten
Super User
Super User

Hello - please confirm the following:

  • Is your custom sort field a value that is on a dimension table along with the labels ( XS, S, M, etc)?
  • Is the label field from the dimension table the field that is on the visual?
  • When you click Sort by Column, are you doing that on the dimension table?  In Power Query or Table View?
  •  
JoaoPereira
Frequent Visitor

Could you provide a sample of your data? I feel like this is very simple but I am having trouble visualizing what your data looks like.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.