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

Creating a list variable

Hey guys,

I have an excel WB with about 20 sheets, for each i need to use the same loading script,

is there a way to predefine a variable to hold a list of my sheet names so i can iterate over that list with a for loop load?

Thanks!

3 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

See this discussion: Loading Multiple Excel Files and Multiple Excel sheets


talk is cheap, supply exceeds demand
miguelbraga
Partner - Specialist III
Partner - Specialist III

Hi Shahar Rosen,

If the sheets have a logical correlation you can create a for loop to read them and load values dinamically. Can you share a sample of your Excel file?

Regards,

MB

Not applicable
Author

Ok i actually managed to create a list variable like this:

SET vSheetList = 'salary', 'bonus', 'car'..... ;

and then i iterate over that list...

and that works just fine