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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
prees959
Creator II
Creator II

ListBox keep sort order after selection?

Hi,  I have a Month listbox which is sorted using


=match(Month, 'Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec','Jan','Feb','Mar')


in the expression box.  If a month is selected can the sort order be kept?  At the moment, if a month is selected it moves to the top of the listbox.


Many thanks,


Phil

Labels (1)
1 Solution

Accepted Solutions
felipedl
Partner - Specialist III
Partner - Specialist III

Hi Phil,

On the Sort tab of the list box, use the Auto Ascending in state.

Example with Ascending (keeps the selection on top):

Sample.png

Auto (keeps the selection order):

Sample2.png

Felipe.

View solution in original post

4 Replies
felipedl
Partner - Specialist III
Partner - Specialist III

Hi Phil,

On the Sort tab of the list box, use the Auto Ascending in state.

Example with Ascending (keeps the selection on top):

Sample.png

Auto (keeps the selection order):

Sample2.png

Felipe.

prees959
Creator II
Creator II
Author

Thanks very much!

Kushal_Chawda
MVP
MVP

one more option

Try uncheck all sort option, keep only expression, with below expression

=match(only({1}Month), 'Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec','Jan','Feb','Mar')

felipedl
Partner - Specialist III
Partner - Specialist III

Glad it helped Phil .