Forum Discussion
Anonymous
5 years agoNot applicable
Error Convert Text to Number
Hi, I tried to convert one column, which has been automatically exported as text, to decimal number, but I got below error. Do you know how I can fix this?
- 5 years ago
@ehsanbh , check for space.
Create a new column with Text.Trim and convert it to decimal and see if it works. It means it's a problem to have white space.
if necessary, see how to handle the error in the power query
https://www.youtube.com/watch?v=OE6DPmKqN7s
https://www.youtube.com/watch?v=9-Lag0VOiTs - 5 years ago@ehsanbh You are welcome. I'm glad it worked.
PS, you can mark more than one answer as a solution, since Amit and I responded around the same idea with similar suggestions - great minds think the same. 🙂
Syndicate_Admin
3 years agoAdministrator
Replace the "," with nothing and redefine the variable type
quyenduong
3 years agoHelper II
Thank you so much. It works now but just for one column, I have a problem that all of my numerical data always automatically has comma between number. Do you know any setting to get rid of this in the future?