Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I'm trying to sort a list box by expression in order to show the data in a certain way.For example if I want a list of names to appear in this order: Kevin, Alex, Zuri, Daniel, Monica, Betty.
In the sort by select expression. An example is the following where
* fieldname is field you are sorting
=Pick(Match([FieldName],'Kevin','Alex','Zuri', 'Daniel', 'Monica', 'Betty')
,1,2,3,4,5,6
)
Hi,
Add this script in your Qlikview file
NamesOrder:
LOAD * INLINE [
Name, NameSortOrder
Kevin, 1
Alex, 2
Zuri, 3
Daniel,4
Monica,5
Betty, 6 ];
Now in the sort tab of the Properties select expression and give
=NameSortOrder
Hope this helps you.
Regards,
Jagan.
Thanks for your help
another way
=Index('Kevin,Alex,Zuri,Daniel,Monica,Betty',[FieldName])