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: 
Peony
Creator III
Creator III

"For each " loop with variable that contained several values

Hi all. 

I have an issue with a loop. 

 

 

Set  vList =  '41528142','41591529','41593262';

 

 


I created a variable

Then I want to use each value from the vList in loop

 

 

For each ID  in $('vList ')

     Call Extract ('$(ID)', 'False');

Next ID

 

But for some reason this idea doesn't works. All values from variable are applied as one, not one after another. Can you please help to fix this issue?

1 Solution

Accepted Solutions
stevejoyce
Specialist II
Specialist II

This should work...

 

For each ID in $(vList)

  Call Extract ($(ID), 'False');

Next ID

View solution in original post

2 Replies
stevejoyce
Specialist II
Specialist II

This should work...

 

For each ID in $(vList)

  Call Extract ($(ID), 'False');

Next ID

Peony
Creator III
Creator III
Author

Thank you much for your help. It works!