Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
6 | |
6 | |
3 | |
2 | |
2 |