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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how to append and delete data in QVD

hi

i am loading daily data from Excel as today's date

Load

.

.

.

from

file

i want to save daily file in a qvd. So after a week , this qvd will have 7 days data

on the 8th day, i want to delete last 5 days data from the same qvd

please advise

thanks

1 Solution

Accepted Solutions
Not applicable
Author

To append you need load the original QVD first, then concatenate the lastest data and store it into same QVD.

Ex:

LOAD * from Ex.qvd

concatenate

Load

.

.

from day2_data;

store Ex into Ex.qvd (QVd);

Hope this help.

Regards,

Amay

View solution in original post

5 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     Try something like this.

     if day(today()) = 8 then

          TB1:

          Load * from abc.qvd where date >= today()-3;

          Store TB1 into abc.qvd;

     Else

          Other script.

     End if

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Not applicable
Author

thanks for that

but  to append data in same qvd for multiple days, it is not working

for eg

day 1 i hit load button

Load

.

.

.

from file

store file into qvd

day 2 i hit load button

load

.

.

.

from file

store file into qvd

-----Day 1 data gets overwritten and i only see Day 2 data in qvd

any advise

thanks

Not applicable
Author

To append you need load the original QVD first, then concatenate the lastest data and store it into same QVD.

Ex:

LOAD * from Ex.qvd

concatenate

Load

.

.

from day2_data;

store Ex into Ex.qvd (QVd);

Hope this help.

Regards,

Amay

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     tell me what exactly you want to do after 7 days.

     After 7 days you want only last 3 days data?

     if not then kindly explain with example.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Not applicable
Author

hey Amay and Kaushil

thats for your help

i will merge your solutions to get what i want

cheers