web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / including filename in ...
Power Apps
Unanswered

including filename in upload

(0) ShareShare
ReportReport
Posted on by 2

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?

 

 

Categories:
I have the same question (0)
  • Akah Mandela Profile Picture
    445 on at

    Check out this Video tutorial  i think it will help you sort out your issue

  • ItisOK Profile Picture
    2 on at

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard