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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Combining Spreadsheets.
Power Apps
Answered

Combining Spreadsheets.

(0) ShareShare
ReportReport
Posted on by 52
A folder contains multiple spreadsheet files. They are named by date. I want to load the data of the first file and add a column which contains the date filename  of the file. Repeat for all files but appending the data each time to create one spreadsheet. Can anyone give me any pointers on how to do this please?
I have the same question (0)
  • David Jennaway Profile Picture
    716 on at

    I'm not sure CDS will help much here, as the data import process will only work off the contents of the file, and there's no direct way to link the records to the filename (which you'd need to populate the column with the date filename.

    I'd otherwise use either of these approaches:

    • Use Excel Macro code to load the files, populate the column with the date filename, and may as well combine the data into one spreadsheet at the same time
    • Use SQL Server Integration Services (SSIS) if you have a license. You can iterate through the files using a foreach loop
  • Joel CustomerEffective Profile Picture
    3,224 on at

    PowerQuery can get all the data from files in a folder (and dataflows use powerquery) but it doesn't show the file name

    https://www.myonlinetraininghub.com/power-query-get-files-from-a-folder

    You could add the filename as a column in the spreadsheet.

     

    see alos https://community.powerbi.com/t5/Desktop/Import-Excel-files-from-Folder-automatically-for-every-month/td-p/164587

  • Verified answer
    EricRegnier Profile Picture
    8,720 Most Valuable Professional on at

    Hi @SwingeyP,

    Do you want to load the combined spreadsheets into CDS? If so, you can use out-of-the-box Dataflows

    with the Excel connector to extract, transform, create the entity and load the data or load the data into an existing entity in CDS. At the transform step you can combine the two spreadsheets.

    More on Dataflows: https://docs.microsoft.com/en-us/powerapps/maker/common-data-service/create-and-use-dataflows

    2020-07-11_8-39-20.png

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 477

#2
WarrenBelz Profile Picture

WarrenBelz 341 Most Valuable Professional

#3
11manish Profile Picture

11manish 317

Last 30 days Overall leaderboard