Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Use SET in INCLUDE

Hello qlikers 🙂 ,

is there a option use a SET variabel in an INCLUDE?

In my qlik sense

SET $savePath = 'lib://Test/';
$(MUST_INCLUDE=[lib://Test/test.qvs]);

 

 My include

FOR vCount = 0 to NoOfTables()-1

LET vTableName = TableName($(vCount));

STORE $(vTableName) INTO $(savePath)$(vTableName).qvd (qvd);

NEXT vCount

 

I want to save all the qvds in Test/QVD.qvd . Can I use the SET variabel in my include ? Thank you in advance! 🙂

Looking forward to reading some answers. 

Labels (2)
1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

This should work. You might want to add some brackets to handle cases where the tablename contains spaces.

STORE $(vTableName) INTO [$(savePath)$(vTableName).qvd] (qvd);

-Rob

View solution in original post

3 Replies
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

This should work. You might want to add some brackets to handle cases where the tablename contains spaces.

STORE $(vTableName) INTO [$(savePath)$(vTableName).qvd] (qvd);

-Rob

Anonymous
Not applicable
Author

sda.PNG

Thank you for your answer! But I got this error message! 🙂

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

You are receiving that error because there is no lib in the path, I believe because of inconsistent variable spelling.  In your original post you spelled it:

SET $savePath

Then when you referred to in the STORE you used just "savePath".  Make sure they match.

-Rob