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

Announcements
Learn how to migrate to Qlik Cloud Analytics™: On-Demand Briefing!
cancel
Showing results for 
Search instead for 
Did you mean: 
alec1982
Specialist II
Specialist II

Concatenate several files

hi guys,

I have several xlsx files with the same start of a name they all start with DR_

They all have four identical columns names and i am in a need to load one table of the four identical columns from all the files..

What would be the best approach to concatenate?

Thxs,

Alec

1 Solution

Accepted Solutions
its_anandrjs
Champion III
Champion III

Then try with this

LOAD

*,

Filename( ) as Filename //Add this flag to get the details of the filename

FROM

[C:\YourLocation\DR_*.xlsx]

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

View solution in original post

7 Replies
its_anandrjs
Champion III
Champion III

Keep all the files in same folder location and as you say they have same column name then concatenate them with load statement like

LOAD

*,

Filename( ) as Filename //Add this flag to get the details of the filename

FROM

[C:\YourLocation\DR_*.xlsx]

(ooxml, embedded labels, table is Sheet1);

Change Your location as your folder location

Note:- The files have same column name and in same sheet1 and in single folder location this condition are must required.

PradeepReddy
Specialist II
Specialist II

try this ....

place all files in same folder..

Tab:

LOAD Field1,

     Field2,

     Field3,

     Field4

FROM

DR_*.xlsx

(ooxml, embedded labels, table is Sheet1);

rogerioqv
Creator II
Creator II

Hello,

See if it works:

LOAD

   COLUMN1,

   COLUMN2,

   column3,

   column4

FROM

[Dr_ *. Xlsx

(OOXML, embedded labels, table is Sheet1);

alec1982
Specialist II
Specialist II
Author

hi guys,

My files are failing to load due to having different sheet names.. any solution?

Thxs for all your help!

maxgro
MVP
MVP

loop on excel files

and for every file

read here

Re: Pulling multiple excel sheets into QV when all headings are the same

to load the first sheet without knowing the name

its_anandrjs
Champion III
Champion III

Then try with this

LOAD

*,

Filename( ) as Filename //Add this flag to get the details of the filename

FROM

[C:\YourLocation\DR_*.xlsx]

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

alec1982
Specialist II
Specialist II
Author

Thxs! This work for me!