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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
vikasmahajan

Incremental Load for excel file

Dear all,

I have excel file containing lacs of records I have stored this into qvd  and then now I am reloading from QVD.

Now I want to apply incremental load for this excel sheet I have date field as PK.

Please share demo or give idea how to do this .

Thanks

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
1 Solution

Accepted Solutions
sunny_talwar

This presents the basic idea:


QVDFile

LOAD *

FROM QVD.qvd;

MaxDate:

LOAD Max(Date) as MaxDate

Resident QVDFile;

LET vMaxDate = Peek('MaxDate');

DROP Table MaxDate;

Concatenate(QVDFile)

LOAD *

FROM Excel

Where Num(Date) > $(vMaxDate);

STORE QVDFile into QVD.qvd (qvd);

HTH

Best,

Sunny

View solution in original post

4 Replies
sunny_talwar

This presents the basic idea:


QVDFile

LOAD *

FROM QVD.qvd;

MaxDate:

LOAD Max(Date) as MaxDate

Resident QVDFile;

LET vMaxDate = Peek('MaxDate');

DROP Table MaxDate;

Concatenate(QVDFile)

LOAD *

FROM Excel

Where Num(Date) > $(vMaxDate);

STORE QVDFile into QVD.qvd (qvd);

HTH

Best,

Sunny

senpradip007
Specialist III
Specialist III

Hi Vikas,

If you have date field as PK, take the latest date from QVD and load the data after that max date.

vikasmahajan
Author

Thanks

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
sunny_talwar

No problem Vikas,

Best,

Sunny