Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Question, I have a excel file with different sheets?

Hi, i have a excel file with different number of sheets I  want to upload to Qlickview , the question is do i have to upload each page alone because I  tried otherwise in vein.

2 Replies
Anil_Babu_Samineni

You want upload to qlikview? What does the mean. Does it mean to say you want to pull the data from excel for all different sheets, If so, Does excel has different sheets. Each sheet has same format? Then, no need to use different load rather we can get all sheets at a time by using * in your sheets placed.

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
vardhancse
Specialist III
Specialist III

**Just change the file path

FOR EACH file in FileList('Filepath\*.xlsx');

ODBC CONNECT32 TO [Excel Files;DBQ=$(file)];

tables:

SQLtables;

DISCONNECT;

FOR i = 0 to NoOfRows('tables')-1

LET sheetName = purgeChar(purgeChar(peek('TABLE_NAME', i, 'tables'), chr(39)), chr(36));

If Wildmatch(sheetName, 'sheet1*','sheet2*') Then

Table:

Load *

From $(file)(ooxml, embedded labels, table is [$(sheetName)]);

ENDIF

NEXT i

Drop table tables;

Next file