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

Announcements
Data Works for AI is here - Join the discussion and enter to win a pair of Qlik kicks: Join the Conversation!
cancel
Showing results for 
Search instead for 
Did you mean: 
lavisha_09
Contributor II
Contributor II

Why does Data Manager auto-load Excel sheets but script requires sheet names to be mentioned manually

In Data Manager, I selected all sheets from the input file i need to load 

However, in Data Load Editor (script), I am forced to specify each sheet name like:

Sheet name is [2023]
Sheet nameis [2024]

My question is:
Why does Data Manager support automatic sheet detection, but script does not?

Is there any way in script to load all sheets from an Excel file without manually specifying sheet names?

Any explanation or best practice would be appreciated.

Thanks.

Labels (2)
1 Reply
rubenmarin
MVP
MVP

Hi, you can go to the script editor and in the 'automatically generated section' you can see the script it uses. I don't use Data Manager because I usually work with script editors but if when laoding the file you are selecting all sheets checking the box for each sheet, then they are loaded one by one.

To load all sheets there could be different strategies based on the naming used for the excel sheet.

In example if there is a sheet for each of the last 5 years and the excel name includes the last or first year loaded, you can extract that year from the name and use a bucle for each of the 5 sheets. Same if the names includes some autonumerical.

If the sheets names are unpredictable you can load the excel as a database to use SQLTables to retrieve all sheets:

https://qlikviewcookbook.com/2008/09/loading-multiple-excel-sheets/

https://community.qlik.com/t5/Visualization-and-Usability/Load-multiple-excel-sheets-dynamically-wit...