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

load multiple .csv files to create a single data files

Hi All,

I need an advise from an expert in loading multiple .csv files.

EX:

abc1.csv, abc2.csv, abc3.csv, abc4.csv ...........abc100.csv.

All good the same haeaders names.

I tried something like this:

let PathToDirectory = 'Z:\query38\*';

for Each File in FileList ('$(PathToDirectory)abc*.csv)' )

yourtable:

LOAD

*

FROM '$(File)'(txt, codepage is 1252, embedded labels, delimiter is ',', msq);

NEXT File;

Kind regards,

12 Replies
Anonymous
Not applicable

anyone know how I can load multiple sheets from one excel, but all sheets have differente names and different data + tables? :s

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

I suggest you start this question in a new thread.

-Rob

0li5a3a
Creator III
Creator III
Author

maybe the below code can help you.

a, b, c, d... are tabs in an excel folder.

ex:

FOR EACH vSheet IN 'A','B','C','D'... etc

LOAD*

FROM

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

NEXT