Forum Discussion
newgirl
Post Patron
5 years agoAppending 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...
- Anonymous5 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.
Anonymous
5 years agoNot applicable
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.
- newgirl5 years ago
Post Patron
Thank you so much!!