Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

variables in same order in list boxes

Hi All,

I am having difficulties in arranging  two list boxes in the same order. The variable values in the list boxes are in the same row in the data source, and  when i select multiple values in one list box the values in the other list box are the corresponding values but not in the same order

e.g:-

datesales
24-05-201623456$
25-05-2016345645$
26-05-201623678$
27-05-2016123445$

now if we have two list boxes as shown below

list box A - This has been sorted in descending order

date
27-05-2016
26-05-2016
25-05-2016
24-05-2016

List box B - i want the value sales in the other list boxes in the same order as shown below

Expected List box

Header 1
123445$
23678$
345645$
23456$

Please let me know how this scenario can be achieved every time i select multiple values?

- Sonthu

2 Replies
oknotsen
Master III
Master III

Check the Sort tab. I think you can sort by expression. You probably can make an expression based on the date field.

Alternatively, you could use a Table Box.

May you live in interesting times!
MarcoWedel

Hi,

as your sample data is already sorted by date ascending, your could sort the "sales" ListBox in load order reversed:

QlikCommunity_Thread_218755_Pic1.JPG

table1:

LOAD Date#(date,'DD-MM-YYYY') as date,

    Money#(sales,'#,##0.00$;-#,##0.00$') as sales

FROM [https://community.qlik.com/thread/218755] (html, codepage is 1252, embedded labels, table is @1);

hope this helps

regards

Marco