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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Decimal number sorting with text

Dear community, i have the following decimal numbers with text but Power BI sees .10 coming before .2 in ascending order. How can I sort the numbering?

 

christineyuping_0-1695094019353.png

 

1 ACCEPTED SOLUTION
DataNinja777
Super User
Super User

Hi @Anonymous 

 

There are two ways to achieve your objectives.  

  • 1st way is to make your decimal texts to 2 decimal instead of 1 for single digit decimal numbers. For example .1 - .9 becomes .01 - .09, as shown below.  

 

  • 2nd way is to add an index column using Power Query and sort column according to the index column. 

Select Add Column > Index Column.

Sakiko_0-1695095959131.png

Sakiko_1-1695096178229.png

I attach the pbix file below:

Index column.pbix

View solution in original post

3 REPLIES 3
Ahmedx
Super User
Super User
DataNinja777
Super User
Super User

Hi @Anonymous 

 

There are two ways to achieve your objectives.  

  • 1st way is to make your decimal texts to 2 decimal instead of 1 for single digit decimal numbers. For example .1 - .9 becomes .01 - .09, as shown below.  

 

  • 2nd way is to add an index column using Power Query and sort column according to the index column. 

Select Add Column > Index Column.

Sakiko_0-1695095959131.png

Sakiko_1-1695096178229.png

I attach the pbix file below:

Index column.pbix

Ahmedx
Super User
Super User

you need to extract the numbers in a separate column in power query and then sort your column by it

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.