Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have an excel file with 5 sheets ABC1, ABC8, ABC9, ABC10, DEF.
And the data format is same in all the sheets.
I need to load all the sheets into qlikview script.
How to achieve this?
If the fields are identical and the sheet names do not change, then:
ForEach vSheet In 'ABC1', 'ABC8', 'ABC9', 'ABC10', 'DEF'
Data:
LOAD *
FROM MyFile.xlsx
(ooxml, table is '$(vSheet)', embedded labels);
Next
To explicitly concatenate:
Set vConcat = 'Data:';
ForEach vSheet In 'ABC1', 'ABC8', 'ABC9', 'ABC10', 'DEF'
$(vConcat)
LOAD *
FROM MyFile.xlsx
(ooxml, table is '$(vSheet)', embedded labels);
Set vConcat = 'Concatenate(Data)';
Next
Check this out: EXCEL SHEETS
click on table files select the sheet and finish
See this link
If the fields are identical and the sheet names do not change, then:
ForEach vSheet In 'ABC1', 'ABC8', 'ABC9', 'ABC10', 'DEF'
Data:
LOAD *
FROM MyFile.xlsx
(ooxml, table is '$(vSheet)', embedded labels);
Next
To explicitly concatenate:
Set vConcat = 'Data:';
ForEach vSheet In 'ABC1', 'ABC8', 'ABC9', 'ABC10', 'DEF'
$(vConcat)
LOAD *
FROM MyFile.xlsx
(ooxml, table is '$(vSheet)', embedded labels);
Set vConcat = 'Concatenate(Data)';
Next
See the attachment...
Make connection and change sheetname every time...
Also, if you are having same column name and data in all the sheet, QV will automatically concatenate all the sheet into one table
If you dont want same use nocaoncatenate in b/w tables