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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Append from multiple tabs

Hi,

gwassenaarjaganswuehltresescomsolomov

I need to append data from multiple tabs in excel into a single file, the field names are the same, attaching the sample file with 3 tabs. Final output should have 9 names with 9 SSOs.

Can anyone guide me on how to do that?

Thanks

Sunny

10 Replies
robert_mika
Master III
Master III

05-May-15 3-38-37 PM.jpg

Directory;

LOAD Emp,

     SSO

FROM

[Append Test.xlsx]

(ooxml, embedded labels, table is abc);

Directory;

LOAD Emp,

     SSO

FROM

[Append Test.xlsx]

(ooxml, embedded labels, table is [123]);

Directory;

LOAD Emp,

     SSO

FROM

[Append Test.xlsx]

(ooxml, embedded labels, table is xyz);

giakoum
Partner - Master II
Partner - Master II

data:

LOAD Emp,

     SSO

FROM

(ooxml, embedded labels, table is [abc]);

data:

LOAD Emp,

     SSO

FROM

(ooxml, embedded labels, table is [xyz]);

data:

LOAD Emp,

     SSO

FROM

(ooxml, embedded labels, table is [123]);

giakoum
Partner - Master II
Partner - Master II

or more elegant :

for Each vSheet in 'abc','xyz','123'

data:

LOAD Emp,

     SSO

FROM

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

NEXT

Anonymous
Not applicable
Author

thanks for the prompt reply guys,

a small concern, this was just an example, I have 100 tabs in reality, so will I have to load 100 tables one below the other? or do we have a more smarter solution ?

giakoum
Partner - Master II
Partner - Master II

you have the solution there. You just need to list the tabs in the for each clause

awhitfield
Partner - Champion
Partner - Champion

LOAD Emp,
SSO
FROM

(
ooxml, embedded labels, table is [abc]);

LOAD Emp,
SSO
FROM

(
ooxml, embedded labels, table is [xyz]);

LOAD Emp,
SSO
FROM

(
ooxml, embedded labels, table is [123]);

Regards Andy

giakoum
Partner - Master II
Partner - Master II

one other solution would be to keep the tab names in a separate excel and read them from there

giakoum
Partner - Master II
Partner - Master II

and this looks like the perfect solution

Loading from multiple Excel files and multiple sheets

Anonymous
Not applicable
Author

thanks @ioannis giakoumakis

appreciate your help, whenever you have time, please share this solution "one other solution would be to keep the tab names in a separate excel and read them from there"

just to enhance my knowledge.

thanks again