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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
rido1421
Creator III
Creator III

Search String in button

Hi There

I have created a Button with an action that does a "Select in field"

My search string is as follows :  (Car|Boat|Plane)

This works correctly to select those values in the "Categories" field.

How would I do a not function in this as to select all possible values except those 3 values.   NOT (Car|Boat|Plane)

Your help is appreciated.

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

I think this should work: ( * ^ (Car|Boat|Plane))

Perhaps this document helps: Compound Search - demystified


talk is cheap, supply exceeds demand

View solution in original post

6 Replies
Anonymous
Not applicable

Hi

Please post sample data.

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

I think this should work: ( * ^ (Car|Boat|Plane))

Perhaps this document helps: Compound Search - demystified


talk is cheap, supply exceeds demand
Anonymous
Not applicable

I am not sure if this is possible directly

a Workaround would be:

1) define select in field Categories:  (Car|Boat|Plane)

2) define Select excluded in field Categories

sunny_talwar

How about this:

='(' & Concat(DISTINCT {<Categories = {'*'} - {'Car', 'Boat', 'Plane'}>}Chr(34) & Categories & Chr(34), '|') & ')'

agomes1971
Specialist II
Specialist II

Hi,

please see this

Expression in Search String via Action button

HTH

André Gomes

rido1421
Creator III
Creator III
Author

Thank You, This worked great