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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Josh_BI_UK
Helper II
Helper II

Append vs Merge using Power Query

Original question posted by @actzikas within a wrong thread. This post aims to answer actzikas question:

 

"Could you bring into two tables as a source? 
= Table.SelectColumns(Table 1, {"OwnerId", "Type", "CreatedDate", "Creator_Role__c"})
and somehow have another Table.SelectColumns for Table 2" link to original post 
 

 

1 ACCEPTED SOLUTION
Josh_BI_UK
Helper II
Helper II

Hi @actzikas ,

 

I hope I'm interpreting your question, right? From the looks of it you wish to Join or Combine two tables into one query?

 

As you haven't stated what columns [Table 2] contains or what your output table might look like - I’ll signpost you to a great video by @reza_rad (links below) where he explains the difference between the two types of combining query options available in Power BI; A: "Merge", and B:"Append".

 

Power_BI_Help_Merge_option.PNG

 

If I may also suggest using the functions already accessible on the Home menu. It is much easier than writing your own "M" script (however, it can be done via the "Table.NestedJoin" function for merge or for append “Table.Combine”.)

 

Links to more info

Reza Rad Blog on:

Append vs. Merge in Power BI and Power Query: https://radacad.com/append-vs-merge-in-power-bi-and-power-query

 

Reza YouTube Video:

Append vs Merge in Power BI and Power Query: https://www.youtube.com/watch?v=qXH4WjCykLc

 

Microsoft Docs - Power Query functions reference:

Append (Table.Combine): https://docs.microsoft.com/en-us/powerquery-m/table-combine
Merge (Table.Join): https://docs.microsoft.com/en-us/powerquery-m/table-join

View solution in original post

1 REPLY 1
Josh_BI_UK
Helper II
Helper II

Hi @actzikas ,

 

I hope I'm interpreting your question, right? From the looks of it you wish to Join or Combine two tables into one query?

 

As you haven't stated what columns [Table 2] contains or what your output table might look like - I’ll signpost you to a great video by @reza_rad (links below) where he explains the difference between the two types of combining query options available in Power BI; A: "Merge", and B:"Append".

 

Power_BI_Help_Merge_option.PNG

 

If I may also suggest using the functions already accessible on the Home menu. It is much easier than writing your own "M" script (however, it can be done via the "Table.NestedJoin" function for merge or for append “Table.Combine”.)

 

Links to more info

Reza Rad Blog on:

Append vs. Merge in Power BI and Power Query: https://radacad.com/append-vs-merge-in-power-bi-and-power-query

 

Reza YouTube Video:

Append vs Merge in Power BI and Power Query: https://www.youtube.com/watch?v=qXH4WjCykLc

 

Microsoft Docs - Power Query functions reference:

Append (Table.Combine): https://docs.microsoft.com/en-us/powerquery-m/table-combine
Merge (Table.Join): https://docs.microsoft.com/en-us/powerquery-m/table-join

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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