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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
yipchunyu
Creator
Creator

Set variable by using a resident table

In the loading scripts, I have a resident table and inside the table I can extract a max(date) field.  And then I would like to use this date field to further filter out other tables in the later part of the scripts e.g.

MaxDate:

Load

Max(date) 

Resident A;

<Let / Set scripts >

Result:

Load 

Resident

Temp 

Where date = vThisWeek ;

Can sample for aforesaid example?

1 Solution

Accepted Solutions
marcus_malinow
Partner - Specialist III
Partner - Specialist III

If I understand you correctly, it sounds like you might want to use a peek statement to extract your max date field into a variable.

E.g.

MaxDate:

Load max(Date) as MaxDate

RESIDENT A;

LET vMaxDate = peek('MaxDate', -1);

 

 

View solution in original post

1 Reply
marcus_malinow
Partner - Specialist III
Partner - Specialist III

If I understand you correctly, it sounds like you might want to use a peek statement to extract your max date field into a variable.

E.g.

MaxDate:

Load max(Date) as MaxDate

RESIDENT A;

LET vMaxDate = peek('MaxDate', -1);