Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Merge another column from another table, the current table is using the function "SELECTCOLUMNS"

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!

 

1 ACCEPTED SOLUTION
v-chenwuz-msft
Community Support
Community Support

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.

vchenwuzmsft_0-1638859990211.png

 

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.

 

 

View solution in original post

2 REPLIES 2
v-chenwuz-msft
Community Support
Community Support

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.

vchenwuzmsft_0-1638859990211.png

 

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.

 

 

calerof
Impactful Individual
Impactful Individual

Hi @Anonymous ,

 

Use Power Query.

https://docs.microsoft.com/en-us/power-query/

F

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.