Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
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

1 Solution

Accepted Solutions
tresesco
MVP
MVP

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)) ;
tresesco
MVP
MVP

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

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

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

- Marcus