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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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