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

Icremental Load with a composite key.

Hello All,

I am facing difficulty in implementing the incremental load using a composite key. Below are the details on which I'm working.

This is the raw data set:

RegionCodeStockDate
N12341001/10/2019
S23451201/10/2019
W12781341/10/2019
E78901401/10/2019
S2345852/10/2019
E7890352/10/2019
W12781002/10/2019
N1234752/10/2019

 

My Expected result with Insert and Update Incremental load should be like:

RegionCodeKeyStockDate
S2345S-2345852/10/2019
E7890E-7890352/10/2019
W1278W-12781002/10/2019
N1234N-1234752/10/2019

 

1 Solution

Accepted Solutions
Brett_Bleess
Former Employee
Former Employee

Vobhilineni, did either of the posts help you get things working as you expect?  If so, please be sure to use the Accept as Solution button on the post(s) that helped.  If you are still trying to sort things out, please leave an update, and if you did something different, consider posting that and mark that as the solution for others that run across this in the future.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.

View solution in original post

3 Replies
dplr-rn
Partner - Master III
Partner - Master III

You result doesnt look like its incremental load.
As i understand it you need only the latest date. Is that a fair statement?
rkpatelqlikview
Creator III
Creator III

Hi,

 

Before Incremental,do a full load with composite key. After generating composite Key follow incremental steps.

Follow same steps for incremental load .store recent date in  variable .

For Incremental data (Insert) use this.

WHERE Date >= $(latestvariable) ;

Update: 

Concatenate

LOAD
*
FROM [lib://QVDLOAD/.qvd]
(qvd)
where not Exists(Key);

Brett_Bleess
Former Employee
Former Employee

Vobhilineni, did either of the posts help you get things working as you expect?  If so, please be sure to use the Accept as Solution button on the post(s) that helped.  If you are still trying to sort things out, please leave an update, and if you did something different, consider posting that and mark that as the solution for others that run across this in the future.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.