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
carlom_iptech
Frequent Visitor

Numeric Sorting of Alphanumeric

Is there a setting to sort alphanumerically? I know there's a sort by, but is there a setting on PowerBI Desktop to sort things numerically? This the default sorting on File Explorer and I'd like to replicate it. 

 

I want this sorting:

 

1

D1

D2

D9

D10

D100

D200

D999

RandomText

Sausage

 

 

Not:

 

1

D1

D10

D100

D2

D200

D9

D999

RandomText

Sausage

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @carlom_iptech,

Text values can not use the numeric mode as the column sort order.
For your scenario, you can extract the number value part to create a new calculate column to use it as 'sort order' of your colum or create new table with raw field values and index field.
Then you can use 'sort by column' property to setting the column sort order.

Custom Sorting in Power BI 

Regards,

Xiaoxin Sheng

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

HI @carlom_iptech,

Text values can not use the numeric mode as the column sort order.
For your scenario, you can extract the number value part to create a new calculate column to use it as 'sort order' of your colum or create new table with raw field values and index field.
Then you can use 'sort by column' property to setting the column sort order.

Custom Sorting in Power BI 

Regards,

Xiaoxin Sheng

ryan_mayu
Super User
Super User

this is the text type, not number. So that's why you can not sort numerically.





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

Proud to be a Super User!




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.