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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
43918084
Creator II
Creator II

Let Variable returns blank in script

I am testing a script that use Let below.  Icannot get DD-4066 in table test2.  May I know if I am doing anything wrong?

 

test:
Load * Inline
[
issuekey
DD-4066,

];

let vkey= peek(test.issuekey);

test2:
load * Inline [
abc
'$(vkey)'
];

Labels (3)
1 Solution

Accepted Solutions
Mark_Leifeld
Partner - Creator
Partner - Creator

Hi @43918084 ,

 

you used the peek function wrong. 

https://help.qlik.com/de-DE/sense/May2024/Subsystems/Hub/Content/Sense_Hub/Scripting/InterRecordFunc...

 

This script should work: 

test:
Load * Inline
[
issuekey
DD-4066

];

let vkey= peek('issuekey',0,'test');

Trace >>>>>>> $(vkey);
test2:
load * Inline [
abc
'$(vkey)'
];

View solution in original post

3 Replies
Mark_Leifeld
Partner - Creator
Partner - Creator

Hi @43918084 ,

 

you used the peek function wrong. 

https://help.qlik.com/de-DE/sense/May2024/Subsystems/Hub/Content/Sense_Hub/Scripting/InterRecordFunc...

 

This script should work: 

test:
Load * Inline
[
issuekey
DD-4066

];

let vkey= peek('issuekey',0,'test');

Trace >>>>>>> $(vkey);
test2:
load * Inline [
abc
'$(vkey)'
];

43918084
Creator II
Creator II
Author

Thanks a lot for your immediate expertise.  Really appreciate it 🙂

Mark_Leifeld
Partner - Creator
Partner - Creator

I'm always happy to help 😉