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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
stevegimbrollmt
Creator II
Creator II

Dynamic Wildmatch expression

Hi ladies and gents,

I was wondering what is the best approach to take to create a WildMatch search using WildMatch or Like to filter from a list that would be retrieved from a text file. so I would do something like WildMatch.

I have found a similar question but it does not work.  Not sure what is wrong with it.

http://community.qlik.com/message/363088#363088

Can someone give me a helping hand please

Regards

Steve

Labels (1)
1 Solution

Accepted Solutions
Clever_Anjos
Support
Support

Try something like this

Patterns:

LOAD * INLINE [

    F1

    8989

    11231

    123123

    13123

    13

    43534

];

List:

LOAD

chr(39)&Concat(F1&'*',chr(39)&','&chr(39))&chr(39) as List

Resident Patterns;

LET Pattern=Peek('List');

Load

  WildMatch(yourfield,$(Pattern))

from yourqvd(qvd).

View solution in original post

2 Replies
Clever_Anjos
Support
Support

Try something like this

Patterns:

LOAD * INLINE [

    F1

    8989

    11231

    123123

    13123

    13

    43534

];

List:

LOAD

chr(39)&Concat(F1&'*',chr(39)&','&chr(39))&chr(39) as List

Resident Patterns;

LET Pattern=Peek('List');

Load

  WildMatch(yourfield,$(Pattern))

from yourqvd(qvd).

stevegimbrollmt
Creator II
Creator II
Author

thanks a lot for the help.

It works