Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
How can I append or merge two tables with different number of columns?
I know theres a straightforward way to do it which is in Advace Query Editor using 'Append' funcitonality but correct me If I am wrong, performance will suffer if I'll do it that way. I notice its takes so much time refreshing the data whenever I made my changs in advance query editor.
I was thinking if theres a way in doing it using PBI DAX, the report will refresh or load faster.
Any thoughts please? Thanks in advance!
Solved! Go to Solution.
@junyetzotomayor wrote:
How can I append or merge two tables with different number of columns?
I know theres a straightforward way to do it which is in Advace Query Editor using 'Append' funcitonality but correct me If I am wrong, performance will suffer if I'll do it that way. I notice its takes so much time refreshing the data whenever I made my changs in advance query editor.
I was thinking if theres a way in doing it using PBI DAX, the report will refresh or load faster. I tried UNION but its thrwoing an error since I have different number of columns.
Any thoughts please? Thanks in advance!
Both way in Power Query or in DAX.
Table = UNION ( SELECTCOLUMNS ( Table1, "column1", Table1[column1], "column2", Table1[column2] ), SELECTCOLUMNS ( Table2, "column1", Table2[Column1], "column2", Table2[Column4] ) )
By the way, how much data in your case? I'd doubt you'll still experience performance issue if the data is too huge.
How can I append or merge two tables with different number of columns?
I know theres a straightforward way to do it which is in Advace Query Editor using 'Append' funcitonality but correct me If I am wrong, performance will suffer if I'll do it that way. I notice its takes so much time refreshing the data whenever I made my changs in advance query editor.
I was thinking if theres a way in doing it using PBI DAX, the report will refresh or load faster. I tried UNION but its thrwoing an error since I have different number of columns.
Any thoughts please? Thanks in advance!
@junyetzotomayor wrote:
How can I append or merge two tables with different number of columns?
I know theres a straightforward way to do it which is in Advace Query Editor using 'Append' funcitonality but correct me If I am wrong, performance will suffer if I'll do it that way. I notice its takes so much time refreshing the data whenever I made my changs in advance query editor.
I was thinking if theres a way in doing it using PBI DAX, the report will refresh or load faster. I tried UNION but its thrwoing an error since I have different number of columns.
Any thoughts please? Thanks in advance!
Both way in Power Query or in DAX.
Table = UNION ( SELECTCOLUMNS ( Table1, "column1", Table1[column1], "column2", Table1[column2] ), SELECTCOLUMNS ( Table2, "column1", Table2[Column1], "column2", Table2[Column4] ) )
By the way, how much data in your case? I'd doubt you'll still experience performance issue if the data is too huge.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
13 | |
2 | |
2 | |
1 | |
1 |