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: 
prahlad_infy
Partner - Creator II
Partner - Creator II

Why Wildmatch not working within script with variable ?

Hi Sirs ,

What is wronging in my script ?

WILDMATCH  E 2.png

 

error

 

WILDMATCH E.png

Labels (1)
1 Solution

Accepted Solutions
tresB
Champion III
Champion III

Try using quotes like:

 

....Where WildMatch (INPUT_COLUMN_T,'$(vINPUT)') ;

 

 

View solution in original post

4 Replies
prahlad_infy
Partner - Creator II
Partner - Creator II
Author

SEARCH:
LOAD Capitalize(WHAT_YOU_WANT_TO_SEARCH) AS WHAT_YOU_WANT_TO_SEARCH

FROM
[Z:\xxxx xxxxxxx\xxxxxx\INPUT.xlsx]
(ooxml, embedded labels, table is SEARCH);


LET vINPUT = chr(42)&Peek('WHAT_YOU_WANT_TO_SEARCH',0,'SEARCH')&chr(42) ;



INPUT:

LOAD * ,
'ROW'& RowNo() AS SL ,
Capitalize(INPUT_COLUMN) as INPUT_COLUMN_T ;


lOAD * INLINE [
INPUT_COLUMN
sigmax
sigma levers
sigmata inc
cobbe
cob sons
blackfund
blackrazors
tesco
tesla
TESTRA
TORONTO
BANGlore
puner
Alaska
] Where WildMatch (INPUT_COLUMN_T,$(vINPUT)) ;
tresB
Champion III
Champion III

Try using quotes like:

 

....Where WildMatch (INPUT_COLUMN_T,'$(vINPUT)') ;

 

 

Marcos_rv
Creator II
Creator II

try this 

INPUT:

LOAD * ,
'ROW'& RowNo() AS SL ,
Capitalize(INPUT_COLUMN) as INPUT_COLUMN_T ;
lOAD * INLINE [
INPUT_COLUMN
sigmax
sigma levers
sigmata inc
cobbe
cob sons
blackfund
blackrazors
tesco
tesla
TESTRA
TORONTO
BANGlore
puner
Alaska
]
Where WildMatch (INPUT_COLUMN,'$(vINPUT)') ; // solution 

saludos!!!!

marcus_sommer
MVP
MVP

Your search-string is missing the quotes. You could try it in this way:

Where WildMatch (INPUT_COLUMN_T, '$(vINPUT)')

- Marcus