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

Load data from multiple sheets from an excel

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?

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

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

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

5 Replies
sunny_talwar

Check this out: EXCEL SHEETS

gautik92
Specialist III
Specialist III

click on table files select the sheet and finish

Not applicable

jonathandienst
Partner - Champion III
Partner - Champion III

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

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Anonymous
Not applicable

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