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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
PeraZo
Helper I
Helper I

How to select columns and Union 2 tables in Power Query

I have 2 tables as below.

 

9.png

10.png

I want to Union these 2 tables into 1 single table in Power Query.

 

I know that Table.Combine would do this but I believe the column name needs to be same.

 

I don't want to do this within the DAX Union but within the Powe Query Editor.

 

Is there anyway I can achieve this? Please help me.

 

Thank you in advance.

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

5 REPLIES 5
Ahmedx
Super User
Super User

to know how to do this watch my video

https://1drv.ms/v/s!AiUZ0Ws7G26RjFB_g4tfwiyxc2d6?e=qavjLz

PeraZo
Helper I
Helper I

Thank you for advice.

When I do the append query it is show as below.

 

11.png

 

I think this happens because the field name is not exactly the same.

I would like to combine the table when the column name is different like above.

It could be workaround when I change the field name but it is tedious when the data is big.

 

Is there way I can achieve this within Power Query?

 

@PeraZo Column name needs to be the same - change Year_2023 and Year_2022 simply to "Date" for example.

bhanu_gautam
Super User
Super User

@PeraZo , You can this by using Append query which is available in top right of the Power Query menu, select any of the Append Query or Append Query as New if you want to create new table,




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






zenisekd
Super User
Super User

@PeraZo Use table append. If you select Append as a new table, a new table is created of the two appended tables. If you select Append tables, the second table is appended to the first one. 

zenisekd_1-1703674728443.png


Accept as solution and Kudos appreciated.

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.