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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.