Power Query Append GroupBy problem

haas67

New Member
Joined
Aug 17, 2022
Messages
14
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. Mobile
Hi, I'm trying to Append three tables and use GroupBy to combine rows.
- the tables each contain a column "Company". This is the GroupBy column
- Each table contains a different second column
- Not every row exists in each table.
How can I achieve the goal of creating the desired table in Power Query?
Append.xlsx
ABCDEFGHI
1CompanyCountryCompanyTypeCompanyWebsite
2AppleUSAIntelTechnologyMicrosoftwww.microsoft.com
3IntelUSAASMLTechnologyIntelwww.intel.com
4ShellNetherlandsMcDonaldsFoodSiemenswww.siemens.de
5ASMLNetherlandsExxonOilAbn-Amrowww.abnamro.nl
6SiemensGermanyBMWAutoBMWwww.bmw.de
7
8
9AppendDesired
10
11CompanyCountryTypeWebsiteCompanyCountryTypeWebsite
12AppleUSAAppleUSA
13IntelUSAIntelUSATechnologywww.intel.com
14ShellNetherlandsShellNetherlands
15KongsbergNorwayASMLNetherlandsTechnology
16SiemensGermanySiemensGermanywww.siemens.de
17IntelTechnologyMcDonaldsFood
18ASMLTechnologyExxonOil
19McDonaldsFoodBMWAutowww.bmw.de
20ExxonOilMicrosoftwww.microsoft.com
21BMWAutoAbn-Amrowww.abnamro.nl
22Microsoftwww.microsoft.com
23Intelwww.intel.com
24Siemenswww.siemens.de
25Abn-Amrowww.abnamro.nl
26BMWwww.bmw.de
Sheet1
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
I am sure that there are better ways of doing this but this is how I did it.
  1. Load the 3 tables as Connection only
  2. Append all 3 queries
  3. Remove all columns except Company
  4. Home > Remove Rows > Remove Duplicates - You know have a table of unique companies across all 3 tables.

  5. Using that the query in 3, merge that query to the other 3 tables using a Left outer join.
  6. Expand the 3 new columns (that will have the word Table in the column) and select only the additional column from each eg Country, Type & Website
  7. Close & Load
Let me know if you need more detail.
 
Upvote 0
Solution
I can follow the first 4 steps.
But don't understand what you do in steps 5 and 6.
 
Upvote 0
Right click on the final append query, then merge Table1 left join on company.
Then go to merge again and link in table2, then merge again and link in table3
 
Upvote 0

Forum statistics

Threads
1,215,391
Messages
6,124,673
Members
449,178
Latest member
Emilou

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