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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
danialier
Creator III
Creator III

Fix the order in a list box

Hello,

Two questions:

1) I have a list box with products A, B, C as follows:

A

B

C

If I select B then it turns to:

B (highlighted in green)

A

C

However what I want is to have:

A

B (highlighted in green)

C

How I can do that ?

2) The original sort of the list box by default is:

A

B

C

However, I want the list box (before doing any selection) to be ordered as:

C

A

B

How I can do that ?

thanks, dani

1 Solution

Accepted Solutions
Not applicable

Hey Dani,

Check out the attached file. Go to sort uncheck 'Sort by state' and check Load order as Original. Also check the inline table in script.

Thanks

AJ

View solution in original post

5 Replies
Not applicable

Dani,

First LOAD your field as you wish, with the desired order.

LOAD all your data later

In the sort tab, choose Load Order (this one is the order of the FIRST load)

Fabrice

Not applicable

Hey Dani,

Check out the attached file. Go to sort uncheck 'Sort by state' and check Load order as Original. Also check the inline table in script.

Thanks

AJ

Christian_Lauritzen
Partner - Creator II
Partner - Creator II

On the sort tab, replace sort on State with sort on expression =index(ALL 'CAB',Fieldname).

Email: christian.lauritzen@b3.se
aveeeeeee7en
Specialist III
Specialist III

Hi Dani

Use this in your Sort Expression:

dual(FieldName,Match(FieldName,'C','A','B'))

See the Attached.

aveeeeeee7en
Specialist III
Specialist III

Hi Dani

See the Attached.

Regards

Aviral Nag