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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Load qvd based on the variable value

Can we load the Qvds for the value in the variable.

for eg: There is a loop where the i value changes and i need the previuos file to be loaded everytime, like my from statement which is as below

FROM "D:\Working\Max"&$(i)-1&".qvd" (qvd);

Labels (1)
2 Replies
Not applicable
Author

Yes, you can use variable in QVD name. to only change you must done to the exemple string to work is "D:\Working\Max"&num($(i)-1)&".qvd" (qvd);

Not applicable
Author

Yes, it possible. It goes something like this:

For <>

SET vQvdPath = 'D:\Working\Max'&$(i)-1&'.qvd(qvd)';

Data:

Load * from $(vQvdPath);

Next