Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
I have load 4 tables from google analytics with idetntial fields.
i need to union this tables and work with union data, but field's sorting in one table is differ from other: http://joxi.ru/vAWDOn6S1kNabr
Why and how fix this trouble?
Solved! Go to Solution.
Hi @serjio,
You can try to use below methods to merge tables.
1. Power query:Table.SelectColumns ,Table.Combine
Sample:
MergeTable=
Table.Combine(
Table.SelectColumns(Table1,{"Column1","Column2","Column3"}),
Table.SelectColumns(Table2,{"Column1","Column2","Column3"}),
Table.SelectColumns(Table3,{"Column1","Column2","Column3"}),
Table.SelectColumns(Table4,{"Column1","Column2","Column3"}))
2. Dax formula. Selectcolumns, union functions.
Sample formula:
Table 2 = UNION(
SELECTCOLUMNS('Table',"Column1",[Column1],"Column2",[Column2],"Column3",[Column3]),
SELECTCOLUMNS('Table2',"Column1",[Column1],"Column2",[Column2],"Column3",[Column3]),
SELECTCOLUMNS('Table3',"Column1",[Column1],"Column2",[Column2],"Column3",[Column3]),
SELECTCOLUMNS('Table3',"Column1",[Column1],"Column2",[Column2],"Column3",[Column3])
)
Reference links:
Dax:
Power query:
Regards,
Xiaoxin Sheng
Cool,
We have to in Power Query. but we can do in DAX also. but in DAX it will createing Performance Issue.
So best way is go with Power Query.
SO we have option to Append your four table and create new table. follow the below steps
Let me know if any help
Hi @serjio,
You can try to use below methods to merge tables.
1. Power query:Table.SelectColumns ,Table.Combine
Sample:
MergeTable=
Table.Combine(
Table.SelectColumns(Table1,{"Column1","Column2","Column3"}),
Table.SelectColumns(Table2,{"Column1","Column2","Column3"}),
Table.SelectColumns(Table3,{"Column1","Column2","Column3"}),
Table.SelectColumns(Table4,{"Column1","Column2","Column3"}))
2. Dax formula. Selectcolumns, union functions.
Sample formula:
Table 2 = UNION(
SELECTCOLUMNS('Table',"Column1",[Column1],"Column2",[Column2],"Column3",[Column3]),
SELECTCOLUMNS('Table2',"Column1",[Column1],"Column2",[Column2],"Column3",[Column3]),
SELECTCOLUMNS('Table3',"Column1",[Column1],"Column2",[Column2],"Column3",[Column3]),
SELECTCOLUMNS('Table3',"Column1",[Column1],"Column2",[Column2],"Column3",[Column3])
)
Reference links:
Dax:
Power query:
Regards,
Xiaoxin Sheng
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 20 | |
| 18 |
| User | Count |
|---|---|
| 68 | |
| 67 | |
| 33 | |
| 31 | |
| 29 |