Forum Discussion
merge columns from different table into 1 table
- 6 years ago
Try like
distinct(
union
(
selectcolumns(Table1,"UPI",Table1[UPI],"ID",Table1[ID],"Personalnumber",Table1[Personalnumber]),
selectcolumns(Table2,"UPI",Table2[UPI],"ID",Table2[ID],"Personalnumber",Table2[Personalnumber]),
selectcolumns(Table3,"UPI",Table3[UPI],"ID",Table3[ID],"Personalnumber",Table3[Personalnumber])
)
)You can also use summarize in place of select columns, Small diff in syntax.
HI Sonne ,
You can achieve that in the Power Query Editor with the tools available in the Ribbon.
You can use the Append Queries function in te Combine group of the Home tab.
Then you Choose Columns (Manage Columns group in the Home tab) you want to keep and Remove Duplicates (Click on Remove Rows in the Reduce Rows group of the Home tab)
Let us know if that works for you.
Regards
David