Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Variable Assignment

Hi,

I want to assign the value generated from the below load statement in to a variable name as Rec, pls provide me the script to be written for acheiving these task

LOAD MAX(RECORD_NO) from TEST.QVD

Thanks,

Arun

2 Replies
Miguel_Angel_Baeyens

Hello Arun,

Rename first the field so you can use it later

LOAD MAX(RECORD_NO) AS MAX_RECORD from TEXT.QVD
I'm using the following
LET vMaxRecordNo = FieldValue('MAX_RECORD', 1);
Peek() or even LookUp() will do as well.

Regards.

Not applicable
Author

Hi Arun,

here you are

DATA:
Load
Max(Reord_No) as MaxRecordNo
From Test.qvd (qvd);

Let vRec = Peek('MaxRecordNo', 0, 'DATA');

Good luck!

Rainer