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: 
Anonymous
Not applicable

Use of 'Not Match' function with a variable

I have the following 'Not Match' function:

If( Not Match(_View, 'Patent Analytics' , 'FDA Analytics') , _View)


Can the string 'Patent Analytics', 'FDA Analytics' be replaced with a variable and use the variable in the function?  If so, how can this be accomplished.


Regards.

1 Solution

Accepted Solutions
tamilarasu
Champion
Champion

Hi Christopher,


Try,


Variable Name: vList

Definition:    'Patent Analytics' , 'FDA Analytics'


= If(Not Match(_View,$(vList) ), _View)

View solution in original post

6 Replies
tamilarasu
Champion
Champion

Hi Christopher,


Try,


Variable Name: vList

Definition:    'Patent Analytics' , 'FDA Analytics'


= If(Not Match(_View,$(vList) ), _View)

ahmar811
Creator III
Creator III

hi Christopher Chitemerere

try this

create the variable like below

set vMatch='Patent Analytics' , 'FDA Analytics';

and write the condition like that using variable

If( Not Match(_View, $(vMatch)) , _View)


hope this help


Regards

Ahmar

tresesco
MVP
MVP

Define variable (say, vExclude) like : 'Patent Analytics','FDA Analytics'

Note, No '=' sign; ignore error red marks. Then :

If( Not Match(_View, $(vExclude)) , _View)

Anonymous
Not applicable
Author

THANK YOU

Anonymous
Not applicable
Author

Thank you Ahmar

Anonymous
Not applicable
Author

Tresses thank you