Forum Discussion

newgirl's avatar
newgirl
Icon for Post Patron rankPost Patron
5 years ago
Solved

Appending Selected Columns from Different Tables

Hi, guys!   My situation is I have 3 different transaction tables with different info provided but each table has some common columns that I would like to combine to create a new table.   For exa...
  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi  newgirl ,

    Here are the steps you can follow:

    1. Create calculated column.

    New Table =
    UNION(
        SELECTCOLUMNS('Table 1',"Client Code",[Client Code1],"name",[Name1]),
        SELECTCOLUMNS('Table 2',"Client Code",[Client Code2],"name",[Name2]),
        SELECTCOLUMNS('Table 3',"Client Code",[Client Code3],"name",[Name3]))

    2. Result

    You can downloaded PBIX file from here.

     

    Best Regards,

    Liu Yang

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.