Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
musketeers
Creator
Creator

Need custom sort in list box

Hi, I need help in sorting the values in list box alphabetically.

But the problem is , we have NA and N/V in our data and we need to keep these two specific values at very last and not in between the data in list box.

Is there any way to get this type of custom sort.

Please help me.

1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

Go to Properties -> Sort Tab -> Write the expression for sorting as below.

If(Fieldname = 'NA' or Fieldname = 'N/V',1,2)

And then keep the sorting as ascending.

Also select the Text sorting.

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
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

Go to Properties -> Sort Tab -> Write the expression for sorting as below.

If(Fieldname = 'NA' or Fieldname = 'N/V',1,2)

And then keep the sorting as ascending.

Also select the Text sorting.

Regards,

Kaushik Solanki

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

-wildmatch(dim1, 'NA', 'N/V', '*')

replace dim1 with your field

1.png

Chanty4u
MVP
MVP

try in sort tab expression

=match(fieldname.'Value1','value2')

musketeers
Creator
Creator
Author

Hi, Thanks for the help. I tried both the answers and both are working fine.

Thanks for your help.