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
Phoenix_Bird
Frequent Visitor

Arithmetic overflow error converting expression to data type int' - left join on 2 SQL tables

I've getting this ' Arithmetic overflow error converting expression to data type int' error when I try to do a left join of 2 SQL tables.

I can pull both tables in individually with no issue using a SQL statement but when I try to do a left join I get this error. 

As far as I can tell, the data type of the fields I'm using to create the join is the same (whole number). 

Any ideas if I can get around this issue in my SQL statement?

2 REPLIES 2
v-xiaotang
Community Support
Community Support

Hi @Phoenix_Bird 

May be there are something wrong with your data. Could you take a test on simple data with the same left join SQL statement and same data type?  Then judge where the problem is by the result. Or could you add more details? so that we can work on it further.

 

If you are in a hurry to use data after left join and currently cant solve this problem, you can use the function Merge Queries in Power Query Editor to process data as an alternative after pulling both tables in individually.

v-xiaotang_1-1622530383751.png

Hope it helps!

 

Best Regards,

Community Support Team _ Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

Probably - hard to tell without sample code.

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.