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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to create/append a new QVD based on the refresh date of the existing QVD?

Hi,

I have the source data as follows:

Table1:

column1,

column2,

column3

from dbo.rawdata

stored into rawdata.qvd

wherein I would like to have a new QVD based on the rawdata.qvd as:

Table2:

RefreshDate,

column1,

column2,

column3

from rawdata.qvd

store into Final.qvd

Hence I would like to have Final qvd consisting of historical data based on REFRESH date stored on daily basis.

1 Reply
prieper
Master II
Master II

data:

LOAD

NOW()          AS Refreshtime,

Column1, ...

FROM Rawdata.qvd (qvd);

STORE

data INTO Final.qvd (qvd);

Instead of NOW() you may also take RELOADTIME() or the like.

Peter

edit:

For adding new data

LET vFileTime = FILETIME('RawData.qvd');

Data: LOAD * FROM RawData.qvd (qvd);

CONCATENATE LOAD * WHERE RefreshDate >= $(vFileTime);

STORE Data INTO ....