Combine Multiple Tabs & Multiple WorkBooks Through Power Query

snaplink22

Board Regular
Joined
Jul 6, 2018
Messages
129
Hello,

I've been struggling with getting Power Query to combine 2 workbooks, with 2 tabs each. Here is my below setup:

1. Both workbooks are located in the same file folder on my desktop and are both .xlsx files.
2. Each tab's data has been converted to a table, with each table being named with the same prefix (WASS_) and the tabs titles follow the same naming convention. Each table and each tab has a different ending to their respective names however (e.g. WASS_Lindrick or WASS_Pasco)

3. On a new workbook, I select Data, Get Data, From File, From Folder. I select browse and then select the folder where these workbooks are stored.

4. Here's where things get a bit murky. I've seen a variety of videos and articles that reference what I'm supposed to do next, with each one being different. The options I have available are:
Combine drop down to select: "Combine & Transform, Combine & Load, and Combine and Load To"
Load drop down to select: "Load and Load To"
"Transform Data"

5. I've experimented with all of them, but the consequences seems to be "Transform Data". Which in turns give me this menu:
1587394377936.png

6. I removed all columns except the first two and then click on the double arrows under the Content header and select the table WASS_Lindrick1:

1587394500514.png


This, however, is where it deviates from all the videos as I only see 1 tabs worth of data displayed after clicking OK. Every thing that I've researched indicates I should be seeing all the data from all 4 of my tabs now, but I'm only seeing the first tabs data.

Any assistance would be greatly appreciated!
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Hi at step 5:
- create custom column with the following formula = Excel.Workbook([Content])
- Remove other columns
- Expand this "table"
 
Upvote 0
Thank you GraH, that did the trick. However, I'm not able to Refresh my query while the other books are open. Are there any work arounds for that by chance?
 
Upvote 0
Hmm, I rarely do that if ever. Any error message or is new data not showing up after a refresh?
 
Upvote 0
I receive the following error: [DataSource.Error] The process cannot access the file (details out file location) because it is being used by another process.
 
Upvote 0
So I selected WASS_Lindrick1 previously and clicked OK and that wouldn't allow me to refresh the data if one of those files was open. From my understanding, the above screen combines all the tabs/books.
 
Upvote 0
I can read mate
I repeat: expand Content, later you can filter/remove unnecessary things
 
Upvote 0

Forum statistics

Threads
1,223,794
Messages
6,174,643
Members
452,575
Latest member
Fstick546

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top