PowerQuery problems

CraigG

Board Regular
Joined
May 1, 2005
Messages
173
Office Version
  1. 365
  2. 2007
Platform
  1. Windows
  2. Mobile
Hi,

I have numerous workbooks which all have multiple worksheets but with the same names. Eg, 'Sheet1' is the same across all workbooks.
All workbooks have the same headings/columns, in the same order. One of the columns is called 'Reference_number:'

I can bring them all together in PowerQuery no problem, all rows are imported no issue.

I have another workbook, with different columns but with one common column - 'Reference_number:' - which matches the columns in the other workbooks.
I want to add this workbook to the others.

In PowerQuery I have two queries:
- Query1 - brings together all of the worksheets with the same columns
- Query2 - brings in the last workbook (where the columns are not the same as those in query1 except for the 'Reference_number:' column.

I've tried 'merging' and 'appending' using the 'Reference_number:' column as a match, but no matter what I do I can't get all rows included in the query so I can then use a PivotTable.
I'm joining using 'FullOuter'. Sometimes I receive the #NAME error.

An example, of what I'm looking for is:

WORKSHEET 1:
Reference_number: Description: Amount:
A01------------------Produce1----1.00

WORKSHEET 2:
Reference_number: Description: Amount:
A01------------------Produce55----99.00

WORKSHEET 3:
Reference_number: Live: Figures:
A01------------------Yes----7777777.21


In my query (where all workbooks are together) I want all columns to be included eg, Reference_number: / Description / Amount / Live / Figures with all rows.
So, in a PivotTable I could filter by Reference_number: and it give me the relevant rows.

I don't know what I'm doing wrong. Any help much appreciated.
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
So you're connecting the data using the Data Model with that Reference Number field? I don't use this feature, but I believe you can use that info with Power Pivot.
 
Upvote 0

Forum statistics

Threads
1,221,482
Messages
6,160,086
Members
451,616
Latest member
swgrinder

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