Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Query
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?

 

 

  • ItisOK Profile Picture
    2 on at
    Re: including filename in upload

    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.

  • Akah Mandela Profile Picture
    445 on at
    Re: including filename in upload

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

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Power Query

#1
lbendlin Profile Picture

lbendlin 2 Super User 2025 Season 1

#1
mmbr1606 Profile Picture

mmbr1606 2 Super User 2025 Season 1

#1
ronaldwalcott Profile Picture

ronaldwalcott 2

Overall leaderboard

Featured topics