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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
ajaykumar1
Creator III
Creator III

Insert & Update

Hi Everyone,

I have to Insert new records and update the existing data with new value.I have gone through the more Incremental load concepts & blogs but still have the confusion.Can any one share the script for the same here.Its little bit urgent.

I am attaching the sample data as well with reload dates(like Jun20,Jun21 and final out put as well).

Please let me know if in case of any clarifications.

Thanks in advance,

Ajay

1 Solution

Accepted Solutions
sundarakumar
Specialist II
Specialist II

PFA,Hope this helps,


Regards,

Sundar

View solution in original post

6 Replies
ajaykumar1
Creator III
Creator III
Author

Any help from anyone.

Thanks,

Ajay

Not applicable

Hi Ajay,

Check my app.

maxgro
MVP
MVP

I think you can solve it without an incremental load, just load the last day and choose the last (by date) record for every id

Directory;

tmp:

LOAD ID, AMOUNT, APPDATE, LOCATION

FROM [Insert&update_Sample Data.xlsx] (ooxml, embedded labels, table is [21 Jun]);

final:

NoConcatenate

load *

Resident tmp

where Peek(ID) <> ID

order by ID, APPDATE desc;

DROP Table tmp;

if you want to do an incremental see attachment

sundarakumar
Specialist II
Specialist II

PFA,Hope this helps,


Regards,

Sundar

ajaykumar1
Creator III
Creator III
Author

Thanks Venugopal,Massimo  and Sundara for indetail information of incremenatal load.

Thanks,

Ajay