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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Store local variables in QVD file

Hi guys,

I have some local variables which need to be stored in QVD file.

Can you please tell me how to do that?

Regards,

Saurabh

1 Solution

Accepted Solutions
Not applicable
Author

You can create an Inline Table:

SET var1 = 1;

SET var2 = 2;

SET var3 = 3;

Variables_table:

LOAD * INLINE [

    Name, Value

    var1, $(var1)

    var2, $(var2)

    var3, $(var3)

];

Store Variables_table into new.qvd;

View solution in original post

2 Replies
rodrigo_damas
Partner - Contributor II
Partner - Contributor II

SET var_1 = 1;

[variable]:

LOAD

     $(var_1) as var_1

Autogenerate (1);

Store variable into path.qvd (qvd);

Not applicable
Author

You can create an Inline Table:

SET var1 = 1;

SET var2 = 2;

SET var3 = 3;

Variables_table:

LOAD * INLINE [

    Name, Value

    var1, $(var1)

    var2, $(var2)

    var3, $(var3)

];

Store Variables_table into new.qvd;