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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

Find out what's new and trending in the Fabric Community.