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: 
Not applicable

Multibox sort problem

Hi all,

I sort the values in a multibox using an expression. This works fine until the user makes a selection, after the selection is made the items seem sorted randomly. Any ideas?

Thnx

4 Replies
fernandotoledo
Partner - Specialist
Partner - Specialist

Multiboxes are weird in sorting Sleep

It´s because the expression used in sorting is affected by the selection in this field. You can use Set Analisys to fix it! For example, if you want to sort The product´s Category by Sales the expression coul´d be

sum( {$<Category=>} Sales)


This will ignore the selection in Category field and keep the values sorted correctly. Remeber to uncheck the "sort by state" check box.

Not applicable
Author

Thnx but my expression is not an aggregate function, just another field, so I can't use Set Analysis. The sort field is different from the display field.

fernandotoledo
Partner - Specialist
Partner - Specialist

In this case aggregate it! User ONLY( {$<Category=>} Sort_Field)

Not applicable
Author

Thnx man works nicely. Didn't know about the ONLY() function 🙂

Is there a way to have the selection appear in the original order? Once a selection is made on the multibox, when returning to it, the selected value always appears on top. Thnx!