Merge 3 or more power queries

shophoney

Active Member
Joined
Jun 16, 2014
Messages
286
Hi,

I'm looking for a way to MERGE 3 or more power queries. I can append them but would like them side by side.

Is there a way?

Thanks
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
If the tables have different column names, it can be done.
Here is one way to do it.
Power Query:
let
    Table1 = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WclRwSSxJVNJRcoIxnCGM2FgA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [A = _t, B = _t, C = _t]),
    Table2 = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WclFwSSxJVNJRcoUx3CCM2FgA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [D = _t, E = _t, F = _t]),
    Table3 = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WcldwSSxJVNJR8oAxPCGM2FgA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [G = _t, H = _t, I = _t]),
    SideBySide = Table.FromColumns(Table.ToColumns(Table1) & Table.ToColumns(Table2) & Table.ToColumns(Table3), Table.ColumnNames(Table1) & Table.ColumnNames(Table2) & Table.ColumnNames(Table3))
in
    SideBySide
 
Upvote 0
Hi,

Thanks for the reply.

I'm not sure i completely follow.

I tried the following:
let
TB_0000_LAST_QTR = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WclRwSSxJVNJRcoIxnCGM2FgA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [A = _t, B = _t, C = _t]),
TB_MENU_LAST_QTR = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WclFwSSxJVNJRcoUx3CCM2FgA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [D = _t, E = _t, F = _t]),
TB_AVER_LAST_QTR = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WcldwSSxJVNJR8oAxPCGM2FgA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [G = _t, H = _t, I = _t]),
SideBySide = Table.FromColumns(Table.ToColumns(TB_0000_LAST_QTR) & Table.ToColumns(TB_MENU_LAST_QTR) & Table.ToColumns(TB_AVER_LAST_QTR), Table.ColumnNames(TB_0000_LAST_QTR) & Table.ColumnNames(TB_MENU_LAST_QTR) & Table.ColumnNames(TB_AVER_LAST_QTR))
in
SideBySide


This 3 Power Queries have the same columns names. ACCOUNT NAME, AMOUNT, ACCT# and AMOUNT
 
Upvote 0
A column name can only appear once in a table, so if you want them "side by side" in a query, you'll have to rename the columns in your appended tables.
 
Upvote 0

Forum statistics

Threads
1,226,730
Messages
6,192,711
Members
453,748
Latest member
akhtarf3

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