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.
Hello community,
I'm creating a new table "A" using "SELECTCOLUMNS" function. until here no problem.
the issue starts when I want to add a new columns from another table to the new table "A".
I tried to use "UNION" but got this message:
"each table argument of 'union' must have the same number of columns"
Any help?
many thanks!
Solved! Go to Solution.
Hi @Anonymous ,
UNION will merge two tables with the same number of columns. The reason you get this error is that one table has one column but another table has many columns.
If you want horizontal combine two tables please consider using CROSSJOIN() Vertical splicing tables, using UNION().
or use Power Query Editor,please refer this article.
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
UNION will merge two tables with the same number of columns. The reason you get this error is that one table has one column but another table has many columns.
If you want horizontal combine two tables please consider using CROSSJOIN() Vertical splicing tables, using UNION().
or use Power Query Editor,please refer this article.
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
73 | |
71 | |
38 | |
29 | |
28 |
User | Count |
---|---|
99 | |
88 | |
62 | |
42 | |
39 |