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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

FUNCTIONNING OF QVD FILES

Hi

Please in the functioning of QVD file, I heard about the incremental load.

I'd like to have a sample script that performs the incremental load.

Thank you


2 Replies
Anonymous
Not applicable
Author

You question is generic, but solutions are always specific. Read "help" and try...
Anyway, I ansewred to a specific question yesterday, you can see an example here

fernandotoledo
Partner - Specialist
Partner - Specialist

The first thing to keep in mind is that every time you use the STORE command, qlikview overwrites your old qvd file.

The incremental load is a sequence of actions where you get the historical data from a qvd, the new data from your source (concatenating) then overwrite the old qvd. You can also create an Insert / Delete logic using dates or primary keys.

The typical incremental load looks like:


//historical data from qvd but today data
DATA:
LOAD * FROM HISTORICAL_DATA.qvd WHERE DATE<TODAY();

//adds new data from today - concatenates to DATA table
CONCATENATE LOAD * WHERE DATE=TODAY(); SQL SELECT * FROM SOURCE WHERE ;

//stores the new table overwriting the old qvd
STORE DATA INTO HISTORICAL_DATA.QVD;


The important is to get the idea, so you can adapt this solution to your case!

Best regards

Fernando