Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Save $600 on Qlik Connect registration! Sign up by Dec. 6 to get an extra $100 off with code CYBERSAVE: REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
khaycock
Creator
Creator

Creating Snapshots of data

I have a few tables of data within my script that I would like to generate snapshots of on a monthly basis and store it in a separate qvd. The reload currently runs daily but I would only need the snapshot of data say on the 25th of each month. 

I've tried setting a version and then concatenating it into a qvd but it just overwrites the data rather than adding to it (see the code below) 

FINAL:
LOAD *,
// monthname(addmonths(today(),+1)) as Version
// monthname(today()) AS Version
date(today()) AS Version
// date(today()) as Version
RESIDENT FACT_FINAL1;
Drop table FACT_FINAL1;

Concatenate(FINAL)
LOAD *
FROM
[..\..\Data\QVDs\VulnerabilitiesSnapshot.qvd]
(qvd);

STORE FINAL into ..\..\Data\QVDs\VulnerabilitiesSnapshot.qvd (qvd);

Any ideas on the best way to do this?

Labels (1)
1 Reply
OdieW
Contributor III
Contributor III

Old post I know, but I just posted a similar question before I found yours. Did you ever find a good way to do this?