Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
ariel_klien
Specialist
Specialist

Sort Alpha Numbers

Hello all Experts,

I have filed with codes that include numeric and alpha .

How can I sort them in a chart like this:

01

02

03

..

..

18

19

1A

1B

1C

20

21

23

..

..

29

2A

2B

And so on....

I attached a file with the codes

Thanks,

Ariel

1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

Try this code.

Directory;

LOAD Code,

  Ord(Left(Code,1)) + (Ord(Right(Code,1))/100) as Sort

FROM

Codes.xlsx

(ooxml, embedded labels, table is Sheet1);

Use Sort Fields in sorting tab of property and use expression sort functionality.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!

View solution in original post

4 Replies
nagireddy_qv
Creator II
Creator II

Hi

Please find the attached sample file..

ariel_klien
Specialist
Specialist
Author

Hi

Thanks for the quick answer.

But as you can see in the example. this is not what i need.

i need that code '1A' will be after code '19' and not after code '99'

Ariel

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

Try this code.

Directory;

LOAD Code,

  Ord(Left(Code,1)) + (Ord(Right(Code,1))/100) as Sort

FROM

Codes.xlsx

(ooxml, embedded labels, table is Sheet1);

Use Sort Fields in sorting tab of property and use expression sort functionality.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
ariel_klien
Specialist
Specialist
Author

Works.

Thanks.