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: 
smilingjohn
Specialist
Specialist

Filter

Hi i have a field called cast

Iam taking this field as a filter and i want to display only two values in this how do i do this

currently this is how it looks

Cast.PNG

I want to show only Sal and Bor in this filter

Thanks

1 Solution

Accepted Solutions
Anil_Babu_Samineni

May be use, Expression for Cast

=If(Match(Cast,'Sal','Bor'), Cast)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

2 Replies
Or
MVP
MVP

Depending on what you want to achieve, you can do this several ways:

1) Filter the data in the original script.

2) Create a second field, Cast_Filter, with the syntax if(Cast = 'Sal' or Cast='Bor',Cast) as Cast_Filter and use that. This is usually the recommended approach if you can't filter the data in the original script.

3) Use a similar expression in your list box (Set it to <Expression> first).

Anil_Babu_Samineni

May be use, Expression for Cast

=If(Match(Cast,'Sal','Bor'), Cast)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful