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

How to save data for history?

Hi

I developed a report that gives me a stock on hand figure for my company. The problem with this report is that it is a running total.

Everytime I reload the file I get the new figures but I cannot view history. How would you suggest I write my report in order to see

a trendline & history of stock levels.

Has it something to do with the write of QVD files?

Regards

Christo

1 Solution

Accepted Solutions
Not applicable
Author

first create an variable vToday that tou can use in the file name Then use below code in the script(if SOH is your tablename):

store SOH into SOH_$(vToday),qvd;

/D

View solution in original post

4 Replies
Not applicable
Author

Hi,

Why dont you store the SOH in an qvd file in a certain intervall and reloads these, then you got SOH over time.

br

/D

Not applicable
Author

I thought that this might be the solution.

But how do I write an objects data to a qvd file?

tabletuner
Creator III
Creator III

why dont you use the store command? e.g.

LET vTimestamp = now();

SOH:

LOAD

Date,

ARTICLE,

Amount

FROM Source;

STORE * FROM SOH INTO $(vTimestamp)_SOH.qvd;

Not applicable
Author

first create an variable vToday that tou can use in the file name Then use below code in the script(if SOH is your tablename):

store SOH into SOH_$(vToday),qvd;

/D