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

Listbox sorting not working for an expression

Hi,

I have a date field in my data, format is 'YYYYMM'.

1.jpg

I would like to show like this in my filter list box: 'MM/YYYY'

2.jpg

First issue when not selecting a value: the value 06/3014 is on top, where  I would expect it to be the last entry. The rest looks fine.

The real problem occurs as soon as I select a value:

3.jpg

1.) The order is completely messed up in the Expression list box. How can I correct it?

2.) Why is '201304' the first deselected value in the original value list box, although this is the previous value?

Thanks,

Jens

1 Solution

Accepted Solutions
preminqlik
Specialist II
Specialist II

hi once try the below exp in sort tab

only({1}date(date#(TransDate,'YYYYMM'),'MMYYYY'))

View solution in original post

4 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Go in sort tab and use the same expression in the expression textbox (check it before)

preminqlik
Specialist II
Specialist II

hi once try the below exp in sort tab

only({1}date(date#(TransDate,'YYYYMM'),'MMYYYY'))

Not applicable
Author

That doesn't work for me, sorry. It is the same result.

Not applicable
Author

Great, this works. Thanks!