Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Incremental load (update 7 past month)

Hello

I want to do an incremental load. From the basis qvd I want to take everything earlier then 7 month (7*30 days) and then find out the highest ID.

is this script correct?

 

LOAD

lMacStaRef,
Beginn

FROM
..\..\02_Data\Result1.qvd
(
qvd) where (Interval(Now() - Beginn) >= 210);

Let UpdateID = Max (lMacStaRef);

Thx in advance

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Thanks

To show use MsgBox ('$(UpdateID)')

FullSolution:

Tab:

LOAD

 

lMacStaRef,

Beginn

FROM

..\..\02_Data\Result1.qvd

(
qvd)

where (Interval(Now() - Beginn, 'd' ) >= 210);


Temp:

LOAD

 

Max

(lMacStaRef) as x

RESIDENT Tab;


LET UpdateID = peek('x',-1,'Temp');

Next:

Load

 

MsgBox ( '$(UpdateID)') as t

 

Resident Temp;

Drop Temp;

View solution in original post

4 Replies
adamwilson
Partner - Creator
Partner - Creator

try:

where (Interval(Now() - Beginn, 'd' ) >= 210);

Anonymous
Not applicable
Author

thx,

how can I test whether QlikView selected the (right) ID??

I wanted to show the variable with

Load

MsgBox($(UpdateID) as x

Resident Tab;

But sth was wrong. Any idea??

Cheers //chesterluck

adamwilson
Partner - Creator
Partner - Creator

this should put the max lMacStaRef in the UpdateID variable:

Tab:

LOAD

lMacStaRef,

Beginn

FROM

..\..\02_Data\Result1.qvd

(qvd)

where (Interval(Now() - Beginn, 'd' ) >= 210);

Temp:

LOAD

Max(lMacStaRef) as x

RESIDENT  Tab;

LET UpdateID = peek('x',-1,'Temp');

Drop Table Temp;

Anonymous
Not applicable
Author

Thanks

To show use MsgBox ('$(UpdateID)')

FullSolution:

Tab:

LOAD

 

lMacStaRef,

Beginn

FROM

..\..\02_Data\Result1.qvd

(
qvd)

where (Interval(Now() - Beginn, 'd' ) >= 210);


Temp:

LOAD

 

Max

(lMacStaRef) as x

RESIDENT Tab;


LET UpdateID = peek('x',-1,'Temp');

Next:

Load

 

MsgBox ( '$(UpdateID)') as t

 

Resident Temp;

Drop Temp;