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

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
YaRennik
Contributor II
Contributor II

Excluding a value from a dynamic value list within a variable Input

Hi Qlik Community,

 

I've been working on a this for a while and can't figure out a solution, so any help is greatly appreciated:

I am using a Variable Input box. I am using the drop down option.

To fill in the drop down I am using the dynamic value option.


My goal is to list all company names:

ABCD GmbH

ABCD AG

 

However I want to exclude all that Include AG.

 

Is that possible?

I tried using Wildmatch, but couldn't figure out how to use that correctly for this usecase.

 

Your help is greatly appreciated! 

Labels (1)
2 Solutions

Accepted Solutions
Or
MVP
MVP

=Concat(distinct if(NOT Wildmatch(Company,'*AG*'),Company),'|')

Sorry if the syntax is a bit off, I can't test it at the moment.

View solution in original post

Or
MVP
MVP

Chr(39) should do the trick.

View solution in original post

5 Replies
Or
MVP
MVP

=Concat(distinct if(NOT Wildmatch(Company,'*AG*'),Company),'|')

Sorry if the syntax is a bit off, I can't test it at the moment.

YaRennik
Contributor II
Contributor II
Author

That works, thank you for you quick reply! 

YaRennik
Contributor II
Contributor II
Author

Hello again,

in order to properly filter the data I need to add an ' before and after every word. 

I tried:
=Concat(distinct if(NOT Wildmatch(''' & [Company] & ''','*AG*'),[RP name]),'|') 

However this puts out an error. Shouldn't it be possible to have a quotation mark inbetween to quotation marks? 

Your help is greatly appreciated

Or
MVP
MVP

Chr(39) should do the trick.

YaRennik
Contributor II
Contributor II
Author

Thank you so much! That works