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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Sorting issue in list box

Hi All,

  I am having the table on following structure. There is some issue in the sorting the values in the list box

S_Filtr,F_Filtr

1,0

0,1

1,1

IF(S_Filtr=1 AND F_Filtr=1,'S&F',if(S_Filtr=1,'S Only',IF(F_Filtr=1,'F Only','N/A'))) As Type

I need to show the list box values in the following manner

1. S Only

2. F Only

3. S & F

How to achieve this

-Jay

1 Solution

Accepted Solutions
marcohadiyanto
Partner - Specialist
Partner - Specialist

Hi Jaya

if you want use list box, you can go to tab sort and sort by load order.

here i attach qvw files

View solution in original post

5 Replies
marcohadiyanto
Partner - Specialist
Partner - Specialist

Hi Jaya

if you want use list box, you can go to tab sort and sort by load order.

here i attach qvw files

Not applicable
Author

Hi Jay,

You can go for custom sort and give expression some thing like Match(S,F,S&F)

Regards

NR

MayilVahanan

Hi

PFA

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

Hi,

  After done with some script changes above idea was worked for me. Thank you

jagan
Partner - Champion III
Partner - Champion III

Hi,

Try like this

Data:

LOAD *,

IF(S_Filtr=1 AND F_Filtr=1,Dual('S&F', 3),if(S_Filtr=1, Dual('S Only', 1), IF(F_Filtr=1, Dual('F Only', 2), Dual('N/A', 4)))) As Type

INLINE [

S_Filtr,F_Filtr

1,0

0,1

1,1 ];

Now in list box Properties -> Sort Tab -> Select Number

Hope this helps you.

Regards,

Jagan.