Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Femke
Contributor III
Contributor III

Incremental load must not overwrite previous records

Hi all, 

I am stuck on this issue: I have a database for which I calculate the number of records (count(rowno()). Every day, the latest records have to be inserted, but not update the previous records. Just add the new data on that day. 

For example:

03/02 5000 records

04/02 5050 records

03/02 has to be kept. 

The problem I have is that '03/02' is overwritten by the new date. 

This date has to be left on the first row. 

 

I first loaded the entire dataset, then I picked the max number of records in that dataset, then I'm loading where the latest records differ from the max. 

Can anyone please help me? 

 

In attachment you find the incremental load. The first load is a load of the entire db. 

Thanks!!

 

Thanks!!

1 Solution

Accepted Solutions
Femke
Contributor III
Contributor III
Author

Hi all, 

 

Thank you for your help! 

I found the solution. The first entire load has to be set in comment before loading the incremental data. At the end a concatenate function is required. 

Thanks again

 

Femke

View solution in original post

7 Replies
cengizeralp
Contributor III
Contributor III

Hi Femke_UZB,

We can comment better if you can post the incremental loading script part.

regards,

johngouws
Partner - Specialist
Partner - Specialist

Good morning. 

In your data source, is there a record as a timestamp or flagged as the 'active' record? 

Regards

John

anushree1
Specialist II
Specialist II

Do not use Not Exists Condition post Concatenate, in case you are using the Standard Incremental Procedure described on help site viz., https://help.qlik.com/en-US/sense/November2019/Subsystems/Hub/Content/Sense_Hub/LoadData/use-QVD-fil...

jonathandienst
Partner - Champion III
Partner - Champion III

Are you already doing this?

First load from the source with where date = today() or  where date >= today()

Then concatenate the qvd with where date  < today()

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
rathore01
Partner - Contributor III
Partner - Contributor III

Hi There,

Check this out and I am sure you will get your answers.

https://www.analyticsvidhya.com/blog/2014/09/qlikview-incremental-load/

Cheers!

Femke
Contributor III
Contributor III
Author

Hi all, 

 

Thank you for your help! 

I found the solution. The first entire load has to be set in comment before loading the incremental data. At the end a concatenate function is required. 

Thanks again

 

Femke