Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Adding multiple excel files

Ok guys, so I have a folder with many excel files. All of them start the same way.I added one of them and created a chart as I want it.Now I want to add all the other files and doing it manually is not an option. After Loading the first one,can I add the others like that ?

LOAD *

From

(biff, embedded labels, table is [справка №2-ОТЧЕТ ЗА ДОХОДИТЕ$]

3 Replies
Anonymous
Not applicable
Author

If all the columns are the same in all of the files, then load * should work. If they have different sheet names in the excel files, just take out ", table is [справка №2-ОТЧЕТ ЗА ДОХОДИТЕ$]" from the last line.

santiago_respane
Specialist
Specialist

Hi Dilyan,

You can use a For to loop through files, this way when there are no files to load you wont get an error.

Something like this:

FOR Each File in filelist ('C:\Users\dilyan\Desktop\Reports\*.xls')

      LOAD *
      FROM ['$(File)'] (biff, embedded labels, table is [справка №2-ОТЧЕТ ЗА ДОХОДИТЕ$];

NEXT File;

Hope this helps.

Kind regards,

Not applicable
Author

Hi Santiago,

I don't get an error message when I execute it the  way you mention but I don't have my fields anymore available. I only have ....qlik.jpg