Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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);

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