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. 🙂
Anonymous
5 years agoNot applicable
@AllisonKennedy Trim worked perfectly! Thanks a lot. These are electricity data I am reading from a CSV file.
AllisonKennedy
5 years agoCommunity Champion
@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. 🙂
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. 🙂