Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
riyazasma1009
Creator
Creator

Sorting Order

Hi All,

I have a list box with the below field values:

1. AT

2. Al

3. Non

The values in the list box should be displayed in the order:

Al

Non

AT

Can anyone please help with the sorting?

Thanks,

Asma

1 Solution

Accepted Solutions
tamilarasu
Champion
Champion

Hi Asma,

Try sort expression as

Match(Field_Name, 'Al','Non','AT')

Capture.PNG

View solution in original post

9 Replies
tamilarasu
Champion
Champion

Hi Asma,

Try sort expression as

Match(Field_Name, 'Al','Non','AT')

Capture.PNG

Anonymous
Not applicable

Tamil Nagaraj

have already given the best solution, though you can try like this as well?

Replace the same expression with following one:

IF(FieldName='AI',1,

IF(FieldName='Non',2,

IF(FieldName='AT',3)))

amit_saini
Master III
Master III

Asma,

See the attachment.

Thanks,

AS

riyazasma1009
Creator
Creator
Author

Thanks Tamil Nagaraj for the quick reply!!

It worked..

amit_saini
Master III
Master III

Did u tried my suggestion???

Thanks,
AS

riyazasma1009
Creator
Creator
Author

Hi Amit,

Thanks for the reply!!

I tried your solution as well. It works too.

Just wanted some clarification on the use of dual in the expression.

amit_saini
Master III
Master III

Anonymous
Not applicable

Duel() is nothing but just assigned a numeric value to a string value. check this?

Dual & Exists – Useful Functions

sauliusr
Contributor II
Contributor II

If these field values came from inline load in script, just change order in script and check box "Load Order" in Sort tab.