Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

combine two tables into one

Hi, 

 

I have two tables with same number or columns and same column names. (Using SQL to pull the data) I would like to combine them into one table. They both have unique identifiers and dont have any duplicates. 

 

table one has 300 rows 

table two has 200 rows

 

The combined table should have 500 rows

 

How do I do that? 

 

Thanks,

 

Daven

  • Anonymous's avatar
    Anonymous
    5 years ago

    Hello @Daven - You can do this in Power Query

    Transform Data > Select Table1, choose Append Queries (top banner)- Append queries as new - type Table2 as the second table, OK, and rename the new query to Table3.

    Tabla1:

    Tb1.PNG

    Table 2:

    Tb2.PNG

    Table 3: (Add as new)

    Tb3.PNG

    I hope this helps.

    Bless you

    -Namish B

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hello @Daven - You can do this in Power Query

    Transform Data > Select Table1, choose Append Queries (top banner)- Append queries as new - type Table2 as the second table, OK, and rename the new query to Table3.

    Tabla1:

    Tb1.PNG

    Table 2:

    Tb2.PNG

    Table 3: (Add as new)

    Tb3.PNG

    I hope this helps.

    Bless you

    -Namish B

  • AlB's avatar
    AlB
    Icon for Community Champion rankCommunity Champion

    Hi Anonymous 

    NewTable = UNION (Table1, Table2)

    Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

    Contact me privately for support with any larger-scale BI needs, tutoring, etc.

    Cheers