Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Everyone!
Can I know is there any other way of loading multiple excel sheets instead of using "For EACH loop"
A.xls--->Sheet1, Sheet2, Sheet3, Sheet4
other than for each m in 'Sheet1', 'Sheet2', 'Sheet3', 'Sheet4'; load *; from ....... *.xls (;;..;;.;;. $(m));
You can use another kind of loop. But you will need a loop. One option is to use an ODBC connection to the excel file and use the SQLTABLES function to retrieve a list of tables that exist in the excel file. Each sheet will be a table in that list. By using th SQLTABLES function you load that list into a table and then you can iterate of the records of that table to load the data from the excel sheets. Heres' an example: https://community.qlik.com/t5/QlikView-Documents/Loading-Multiple-Excel-Sheets-Dynamically-along-wit...