Forum Discussion
anguyen83
9 years agoFrequent Visitor
Create a new table from columns from existing tables
Hi I am looking to do the following but I don't know how to go about doing it. I know how to do it via MS access but it's difficult to see how it'll work in Power BI This is what I would like ...
- Anonymous9 years ago
Hi anguyen83,
You can simply use below formula merge these tables.
New Table= UNION(SELECTCOLUMNS(Table1,"Stage","TS1","Date",[TS1]),SELECTCOLUMNS(Table2,"Stage","TS2","Date",[TS2]),SELECTCOLUMNS(Table3,"Stage","TS3","Date",[TS3]),SELECTCOLUMNS(Table4,"Stage","TS4","Date",[TS4]))
Regards,
Xiaoxin Sheng
Anonymous
9 years agoNot applicable
Hi anguyen83,
The first parameter of selectcolumns function is table type.(based on your screenshot, I find you input a column)
Regards,
Xiaoxin Sheng
anguyen83
9 years agoFrequent Visitor
Hi Xiaoxin
Not sure what you mean by that?
Would you be able to provide an example? sorry the language of DAX is new to me.