Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Dear all,
is it possible to loop through a folder and choose only the tables with a certain prefix name ?
for example, I would consider only the table with BUFFER_ as prefix name
Help please !1
Thanks in advance
Load your script some thing like in location type like this BUFFER_*.xlsx if file name start with this only. By this all your tables load and concatenate with each other and make single table also if field name are same.
LOAD FieldName,
FileBaseName() as FileName
FROM
(ooxml, embedded labels, table is Sheet1);
Hope this helps
Thanks & Regards
Load your script some thing like in location type like this BUFFER_*.xlsx if file name start with this only. By this all your tables load and concatenate with each other and make single table also if field name are same.
LOAD FieldName,
FileBaseName() as FileName
FROM
(ooxml, embedded labels, table is Sheet1);
Hope this helps
Thanks & Regards
Directory;
FOR Each File in filelist ('.\BUFFER_*.xlsx')
LOAD *
FROM
'$(File)'
(ooxml, no labels, table is Sheet1);
NEXT File;
or
Directory;
LOAD *
FROM
BUFFER_*.xlsx
(ooxml, no labels, table is Sheet1);
Thanks very much!!
Thanks very much for your help