cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jscivias
Frequent Visitor

How to combine two tables in their entirety (some columns are the same, some are not)

Hello, if I am trying to combine the first two tables and create a new table (third), but I am not having much luck with either append or merge queries:

 

jscivias_0-1659474623013.png

 

when i try append query, the new table does contain all seven columns but not all rows (from both tables) show up. if i try merge query, i just run into problems.. 

 

any help appreciated, thanks a lot. 

 

 

 

1 ACCEPTED SOLUTION
jbwtp
Memorable Member
Memorable Member

Hi @jscivias,

 

I am quite surprised that Append does not show up all rows from both tables, it doe snot do any filtering or duplicate removal by default. It should be some other step which does it.

 

For Merge (to achive the bottom table form the top two: use JoinKind.FullOuter rather than JoinKind.LeftOuter which is used by default.

 

Hope this helps.

 

Cheers,

John

View solution in original post

1 REPLY 1
jbwtp
Memorable Member
Memorable Member

Hi @jscivias,

 

I am quite surprised that Append does not show up all rows from both tables, it doe snot do any filtering or duplicate removal by default. It should be some other step which does it.

 

For Merge (to achive the bottom table form the top two: use JoinKind.FullOuter rather than JoinKind.LeftOuter which is used by default.

 

Hope this helps.

 

Cheers,

John

Helpful resources

Announcements
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

Thank you 2022 Review

2022 Monthly Feature Releases

We had a great 2022 with a ton of feature releases to help you drive a data culture.

Top Solution Authors
Top Kudoed Authors