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: 
abhaysingh
Specialist II
Specialist II

Incremental

I want to pick last reload time in incremental load.. Can any one help me in this

thanks..

3 Replies
its_anandrjs
Champion III
Champion III

Use variables for that

Let vLastReload = NOW();

Or

Let vLastReload = ReloadTime();

and use this variable in the incremental load script

Load *

From Location Where  Datefield > $(vLastReload);

Not applicable

Dear Abhay,

You also try his way , if you have datetime field in your Database table....

//Step 1------

MaxData:

LOAD

     DATIME

FROM  ..\X.qvd(qvd);

//step 2...........

Sorting:

Load

DATIME as MaxDate

Resident MaxData order by DATIME Desc;

Let MaxTimeStamp=Peek('MaxDate',0);

Let MinDate=Peek('MaxDate',-1);

Let MaxTIMESTAMP=Timestamp($(#MaxTimeStamp),'YYYY-MM-DD-hh.mm.ss.ffffff');

Drop Table Sorting,MaxData;

use last variable in your query.

Warm Regards

Vimlesh Gupta

PradeepReddy
Specialist II
Specialist II

As suggested by anand, you can use the 'ReloadTime()' function


ReloadTime() : Returns a time stamp for when the script last finished re-executing.