Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Sorting based on first digit only

I have numbers that need to be sorted as follows:
0
001
1
10
1000
2
20
202AC
2000X
etc.

I have tried everything I know,
still i am getting following results
0
1
2
10
20
etc
any suggestions?
Thanks,
15 Replies
Not applicable
Author

Hi Dilyana,

I have tried this option also[=text(YourFieldName) ] but it is sorting based on text first. I want it to be sorted first by numbers then by text.

Please find an attachment in my earlier post, also at the end i have mentioned the desired result for the column "stat".

Please suggest if u found something useful.............

Thanks!

Not applicable
Author

this page intentionally left blank

Not applicable
Author

Hi Anders,

I got the exact result! Thanks a lot :-)!

Please explain me how this function works?

Not applicable
Author

Hi Dilyana,

i didn't get it at the first place what u asked but that opton works!

Thanks a lot!

Regards,

Amey.

Not applicable
Author

Hi

I use expression in listbox with =text(stat)

then sort by text.

Regards

Anders

Not applicable
Author

Thanks man!

Regards,

Amey.