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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
vinod2086
Creator II
Creator II

List Box filters

Hi,

i have a list box

Status

closed

pending

approved

closed by L1

Closed by L2

Pending from L1

but in my requirement is status list box should display only closed ,closed by L1 and Closed by L2.

Status

closed

closed by L1

Closed by L2

Is it possible if yes please give me the code

Thanks in Advance.

9 Replies
mato32188
Specialist
Specialist

Hi,

use wildmatch() in your script editor like:

Load ...

...

From ...

Where Wildmatch(Status, 'Closed*')

BR

M

ECG line chart is the most important visualization in your life.
Anonymous
Not applicable

Hi,

Add an expression in the general tab of your listbox as follows

if(match(Status,'closed','closed by L1', Closed by L2'),Status)

Regards,

Greeshma

qlikviewwizard
Master II
Master II

Hi vinod2086,

Use the code as below

Table:

LOAD * inline [

Status

closed

pending

approved

closed by L1

Closed by L2

Pending from L1

]

where Status='closed'or NAME ='closed by L1' or NAME ='Closed by L2';

amit_saini
Master III
Master III

Vinod,

You can do this by two ways:

Front side:

=if(match(Status,'closed' ,'closed by L1' ,'Closed by L2' ),Status)

Script Side :

Where match(Status,'closed' ,'closed by L1' ,'Closed by L2') ;

Thanks,
AS

nagarjuna_kotha
Partner - Specialist II
Partner - Specialist II

Hi ,

In Which end you want.Front end or back end ?

happydays1967
Creator
Creator

HI,

Both above answers are valid, it just depends on what you want.... Do you want to include the data but just not be able to filter on it, then use the expression (very last option in the field list of the list box) and then enter the expression  like Greeshma suggested. If you don't want to see data at all, then exclude it in your script.

Regards,

HP

vinod2086
Creator II
Creator II
Author

Hello Thanks for all of you

actually my requirement is different i have created one Report in that report i have used more than 5 sheets for example

i have 2 sheets one is for closed and another is pending reports here i used straight table i has applied expression now i can see closed and pending reports separately this is fine but when i select list box by default it displaying all values but i don't want to display all values for closed report Status  list box should display only closed, closed by L1 And so on

same as pending report

is it possible ?

qlikviewwizard
Master II
Master II

Hi vinod2086

Please Close this thread and start the new thread for new question.

Anonymous
Not applicable

Hi Vinod,

Please refer the following code,

Tab1:

LOAD * Inline [

S.No,Status

1,Closed

2,Pending

3,Approved

4,Closed by L1

5,Closed by L2

6,Pending from L1

];

Tab2:

LOAD Status as Place

Resident Tab1 Where WildMatch(Status,'Closed*');