Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Search functions where field contains Asterisk

Hi All,

My field in question has been marked with an asterisk to indicate that it is not in use anymore.  This becomes problematic when using Search functions in qlikview.  Is there a way around this issue?

Field Example:

*Product1 102020

Product2 10102 Bulk

Product 3 10101

What I need is to identify all fields that do not contain the word "Bulk" and do not contain an Asterisk.

I was trying to use the below formula but the asterisk provides an issue.  Can anyone make any recommendations?

if(Product like '*Bulk','',Product) as a calculated dimension.

Regards,

5 Replies
Anonymous
Not applicable
Author

My Solution is as below, if anyone has anything better please let me know.

=if(ProductDetail like '*Bulk' or Replace(ProductDetail,'*','%') like '*%*',ProductDetail,'')

Anil_Babu_Samineni

How you want to search? May be Replace it with * to any other functions like !@#$%^&() and then use that condition where you are?

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
devarasu07
Master II
Master II

Hi,

another way you create like this

pick(WILDMATCH(Replace(ProductDetail,'*','%'),'*%*'),ProductDetail,'')

ashwinishinde
Partner - Contributor III
Partner - Contributor III

try this,

if(left(Product,1)='*',Product,

if(WildMatch(Product,'*Bulk'),Product)) as dim,

Anonymous
Not applicable
Author

The * is not necessarily the first character in the field