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

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
david_ze
Partner - Contributor III
Partner - Contributor III

How to deal with incremental load and archiving old data

Hi,

I have two tables: 'params' and 'sessions' which look like this:

params: id, "param_name", 'param_value" 200m recs

sessions: id, date, action, user_id, user 50m recs

I'd like to load both tables on incremental basis and to hold only 30 days back and put in an archive file (qvd) the data which are older than 30 days.

I will appreciate if you can propose the right script along with example for this.

Thanks in advance,

David

3 Replies
suniljain
Master
Master

Params:

Load

ID,

Param_Name,

Param_Value

From Delta.QVD;

concatenate

Load

ID,

Param_Name,

Param_Value

From Historical.QVD where not exists(ID);

in Same manner you can make increamental load for session.

david_ze
Partner - Contributor III
Partner - Contributor III
Author

Do you have a .qvw sample for this?

David

suniljain
Master
Master

Dear David,

Chack attached application and reply me if you have any query