Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Fuisdale2
Frequent Visitor

Power Query Merge Multiple workbooks in a Folder

Hi all,

 

Apologies, if this question has been posted before but I am new to Power Query and I am still learning as I go along.

I have searched Google and watched various tutorials but I couldnt find the answer i am looking for.

 

When I apply the following steps:

1. Go to Data tab
2. Open the Get Data pull down menu
3. Select From Folder
4. Browse the folder path where the data files reside
5. Click Combine and then select "Combine and Transform Data” 

 

STEP 1

As you can see from the picture I have had to amend the Sample File by creating "TBL (1)" and then I had to create "TBL (2)" and then merge the 2 TBL into a consolidated Table called "Merge_TBL 1&2".

 

I had to do this as due to how the Data in the Sample worksheet has been formatted as there are different number of rows and columns in each workbook.


Screenshot 2021-12-06 110631.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

STEP 2

What  I want to do now in the below picture is to use the "Merge_TBL 1&2" and apply the steps in this "Merge_TBL 1&2" to all the files in the folder that I am importing to so it appears in the below "SPAR data Allocation".

 

 

Screenshot 2021-12-06 112047.jpg

 

From this point I am stuck on what to do next as to apply step 1 to step 2 so when i build a consolidated report it appears in the required format i need.

 

Any help and guidance is appreciated.

1 ACCEPTED SOLUTION
Fuisdale2
Frequent Visitor

To resolve my issue I duplicated the process of converting the sample file to 2 seperate processess instead of trying to combine the 2 into 1 merged step.

 

After this I then merged the 2 new process to the new workbook to create a consolidated report.

View solution in original post

6 REPLIES 6
Fuisdale2
Frequent Visitor

To resolve my issue I duplicated the process of converting the sample file to 2 seperate processess instead of trying to combine the 2 into 1 merged step.

 

After this I then merged the 2 new process to the new workbook to create a consolidated report.

Fuisdale2
Frequent Visitor

I assume I am missing a few steps in the whole process. I cant seem to figure out where in the process and what amendments are needed.

kp54357
Helper I
Helper I

Did you try the merge or append option ?


@kp54357 wrote:

Did you try the merge or append option ?


I duplicated the sample file and renamed them "TBL (1)" and then  "TBL (2)" and MERGED them to create  "Merge_TBL 1&2".

 

When I click on "SPAR data Allocation" it only shows the applied steps I did in "TBL (1)".

 

What I am trying to accomplish is for "SPAR data Allocation" to use the steps in "Merge_TBL 1&2" to apply to all the files.

Did you try merge as new ?


@kp54357 wrote:

Did you try merge as new ?


to create "Merge_TBL 1&2" i did merge as new.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors