Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
srinu1331
Contributor III
Contributor III

Load data Excel to Multiple sheets

How to load with data from single excel with multiple sheets with single Load statement

5 Replies
vinieme12
Champion III
Champion III

See this thread

QlikView Addict: Looping Through Excel Sheets

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
dsharmaqv
Creator III
Creator III

hope it helps

FOR each vFile in filelist('$(vSourceLocation)/File.xlsx')


FOR i = 0 to 1

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

Table:
LOAD *

FROM
[$(vFile)]
(ooxml, embedded labels, table is [$(vSheetName)]);


NEXT i

NEXT

srinu1331
Contributor III
Contributor III
Author

if u possible explain it

where we declare the file path

dsharmaqv
Creator III
Creator III

setting > variable overview

or @ load script like below

let vSourceLocation = '..\01SourceFile\';

rajeshqvd
Creator II
Creator II

ODBC CONNECT TO [EXCEL;DBQ=C:\USERS\RAJESHG\DESKTOP\Multiexcelsheet.xlsx];

Let vfile ='C:\give your path\Multiexcelsheet.xlsx';

Exceltable:

SQLTABLES;

DISCONNECT;

for i=0 to NoOfRows('Exceltable')-1

Let vExcelsheets = PurgeChar(Peek('TABLE_NAME',i,'Exceltable'),'$''');

LOAD *

FROM

$(vfile)

(ooxml, embedded labels, table is [$(vExcelsheets)]);

NEXT

DROP Table Exceltable;