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
I had the same mistake and solved it like this:
1. Enter the query edit
2. Right click on a column cell and Replace values " " for nothing
3. Under Data Types change text by number
I had the same problem and it is my solution:
1. Enter to the query
2. Right clic on a cell in the column, replace values " " for nothing
3. Change tipe of variable for number
Its work