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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Loading string value from a table to a variable

Hi

My requirement is to load string value in a field from a table to variable.

Ex.

var:

id,name

1,aa

2,bb

3,cc

I want field value into a variable

I tried with peek function.

Let vName = peek('name',0,'var')

I didn't get any result.

3 Replies
trdandamudi
Master II
Master II

There is no issue with your code and I do get a value for the variable.

krishnacbe
Partner - Specialist III
Partner - Specialist III

The Script which you shared works perfectly.  What is the issue you are facing?

rubenmarin

Hi Mallika...

var:

LOAD * Inline [

id,name

1,aa

2,bb

3,cc

];

Let vName = peek('name',0,'var');

Creates a variable named 'vName' with the stored value 'aa'.