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
Ishi_garg
New Member

Error while merging two tables - Need a solution?

I have to merge two tables that have a common column as Country-ID. I tried merging them by keeping the data type of the common column in both the tables, first as Whole Number and then as Text, but neither of them is working.  I am getting the following error.  Error.PNG

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

Hi @Ishi_garg 

When Merging tables, it doesn't support to merge based on columns which have two kinds of data types.

Capture1.JPG

Please change the type to the same one.

If you need to keep, you could create a duplicate column for that column, and change the type.

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

dd

View solution in original post

2 REPLIES 2
v-juanli-msft
Community Support
Community Support

Hi @Ishi_garg 

When Merging tables, it doesn't support to merge based on columns which have two kinds of data types.

Capture1.JPG

Please change the type to the same one.

If you need to keep, you could create a duplicate column for that column, and change the type.

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

dd

Jimmy801
Community Champion
Community Champion

Hello

Are you reading data from a Excel workbook? It is possible that in one of your cells it's a formula error?

Hope this helps

Jimmy

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.