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: 
FrankGrimm
Partner - Creator
Partner - Creator

Using an field-value as an variable

Hello together,

 

i load a tabel with only one value.

VALUE_FIELD:

load * inline [

TO_FIND

Frank

];

 

and i want to use this value to build an "WHERE" for an other load process.

 

NAMETABLE:

load * inline[

NAME, GIVENNAME

Frank, Smith

Eve, Brown,

Joe, Miller

] where ......the NAME  is = Frank

I'm not able to use ...... where exists(NAME,TO_FIND)

 

So i want to tranport the value of TO_FIND  (Frank) to a variable to use the following "Where" order

 

....where NAME="TO_FIND"

 

Thanks a lot

Labels (4)
1 Solution

Accepted Solutions
MendyS
Partner - Creator III
Partner - Creator III

Hi @FrankGrimm 

please try this - 
Let vTemp= (Peek('TO_FIND',0,'VALUE_FIELD'));

and filter - where NAME= '$(vTemp)'

View solution in original post

3 Replies
MendyS
Partner - Creator III
Partner - Creator III

Hi @FrankGrimm 

please try this - 
Let vTemp= (Peek('TO_FIND',0,'VALUE_FIELD'));

and filter - where NAME= '$(vTemp)'

FrankGrimm
Partner - Creator
Partner - Creator
Author

Hi MendyS,

 

perfect solution.

Thanks al lot!

Frank

MarcoWedel
MVP
MVP

Hi @FrankGrimm ,

you were close, but instead of 

Where Exists(NAME,TO_FIND)

it should be

Where Exists(TO_FIND,NAME)