Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Store Variable value back in the QVD

Hi Guys,

I download some data from a weblink and it is a very small data but the value changes everyday.

I have the QVW application scheduled for reload every morning at 9 AM.


This application loads 1 table containing 2 fields likes this.

ProductPrice
Apple$10
Mango$25
Banana$15
Orange$7


What I want to do is...

Sum the total price and store that value somewhere with date and use that date and value the next day to compare change in the total price over time.

What is the best way to achieve this?


1 Solution

Accepted Solutions
boorgura
Specialist
Specialist

You can write a piece of code to store a QVD.

something like this:

TotalPrice:

LOAD Sum(Price) as TotalPrice,

date(today()) as Current_Date

from <weblink source> ;

store TotalPrice into <filepath>TotalPrice.qvd;

View solution in original post

2 Replies
boorgura
Specialist
Specialist

You can write a piece of code to store a QVD.

something like this:

TotalPrice:

LOAD Sum(Price) as TotalPrice,

date(today()) as Current_Date

from <weblink source> ;

store TotalPrice into <filepath>TotalPrice.qvd;

Anonymous
Not applicable
Author

Yes i would agree with Rakesh. If you wanted to store the sample of those QVDs historically. See below script

TotalPrice:

LOAD Sum(Price) as TotalPrice,

date(today()) as Current_Date

from <weblink source> ;

store TotalPrice into <filepath>TotalPrice_today().qvd;