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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
alec1982
Specialist II
Specialist II

dynamic load of set of excel files

I have a set of 10 excel files as follow

abc-10-16-2015.xlsx

abc-10-17-2015.xlsx

...

abc.xlsx

Need to load the files into one table but not include any file that doesn't have time stamp.

also within each file I have 10 tabs and each tab has the same table but for different type. the sheet name define the type.

Is there anyway I can concatinate all of them into one table and add the sheet name as column named tab?

Thxs,

Alec

1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

You need to drop the Temp table for each loop.

NEXT i

DROP TABLE Temp;

Next

Without the DROP, you are adding to the table each time you issue SQLTABLES.

-Rob

View solution in original post

4 Replies
avinashelite

alec1982
Specialist II
Specialist II
Author

hi,

When using the solution above. it appears to create duplicates on my side..

Here is my sample files and qvw..

I couldn't figure out why the duplicates on the second file happening..

if anyone can help, I appreciate it!

Alec

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

You need to drop the Temp table for each loop.

NEXT i

DROP TABLE Temp;

Next

Without the DROP, you are adding to the table each time you issue SQLTABLES.

-Rob

alec1982
Specialist II
Specialist II
Author

thank you Rob!