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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to store QVD into path set by variable

I'm trying to store a QVD into a file path set by a variable. Here is what I have so far:

In the include file- Set vQVDPath_ExchangeRate= "(private path)\Exchange Rates.qvd";

In the script- $(Include=..\InputFiles\vQVDPath_ExchangeRate);

Then I try to store the QVD like so: STORE [Exchange Rate] INTO vQVDPath_ExchangeRate (qvd);

This doesn't work. What am I doing wrong?

Labels (1)
1 Solution

Accepted Solutions
Miguel_Angel_Baeyens
Support
Support

You need to expand the variable, looking like this

STORE [Exchange Rate] INTO [$(vQVDPath_ExchangeRate)] (qvd);

If you want to see the contents of the variable, either debug instead of run from the script editor, and you can set a break point on the SET instrucion or the $(Include=) and see whether the value is properly populated

View solution in original post

2 Replies
Miguel_Angel_Baeyens
Support
Support

You need to expand the variable, looking like this

STORE [Exchange Rate] INTO [$(vQVDPath_ExchangeRate)] (qvd);

If you want to see the contents of the variable, either debug instead of run from the script editor, and you can set a break point on the SET instrucion or the $(Include=) and see whether the value is properly populated

sunny_talwar
MVP
MVP

May be try this

STORE [Exchange Rate] INTO '$(vQVDPath_ExchangeRate)' (qvd);