Hi guys,
hope I am at the right place here. I need to upload multiple excel files from a folder. Besides all the columns of all the excel files, I need to be the filename to be included as well. The relevant code up to now is:
Source = Folder.Files(FolderpathFacts),
#"Added Custom" = Table.AddColumn(Source, "Custom", each fnGetFacts([Folder Path]&[Name])),
#"Removed Other Columns" = Table.SelectColumns(#"Added Custom",{"Filename", "Custom"}),
ImportAllColumns = #"Removed Other Columns"[Custom],
Custom1 = Table.Combine( ImportAllColumns),
"Filename" is not included in the imported columns.
Who can help me out?
Hi Mandela,
Thank you for pointing out the link to the video. Uploading multiple files is not the issue. That is taken care of in the fnGetFacts function. My current code uploads all excel files, and all columns of those files. in a later step, based on a list, all non-wanted columns are removed. I think there is the basis of the problem. The code imports all columns defined in "custom", but not the filenames.
Check out this Video tutorial i think it will help you sort out your issue
lbendlin
2
Super User 2025 Season 1
mmbr1606
2
Super User 2025 Season 1
ronaldwalcott
2