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: 
latheesh
Contributor II
Contributor II

Multivalues into variable to use in load statement

Hi, Anyone can help on this.

I need to put the values (ex: product id) into a variable and the variable needs to be passed through where clause to fetch the data from DB.

Values to the variables is in an excel and the values will be dynamic and more than 500. The file will get updated from some other application. So that I cannot go with inline. Please help.

Thanks.

Labels (2)
1 Solution

Accepted Solutions
latheesh
Contributor II
Contributor II
Author

Thanks for your input.

It worked for me through another approach.

Concat(Distinct char(39) & "productid" & char(39),',') as allproducts

Resident table;

Then creating a var with peek and this can be passed as input for another load script.

Let vProduct=Peek('allproducts');

Thanks.

View solution in original post

2 Replies
vinieme12
Champion III
Champion III

Use Exists()  or  INNER KEEP  to restrict the data

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
latheesh
Contributor II
Contributor II
Author

Thanks for your input.

It worked for me through another approach.

Concat(Distinct char(39) & "productid" & char(39),',') as allproducts

Resident table;

Then creating a var with peek and this can be passed as input for another load script.

Let vProduct=Peek('allproducts');

Thanks.