Forum Discussion
Convert text to number
- 10 years ago
Replace "%" before to convert to number the columns.
A guide:
Step 1:Step 1: Edit QueryStep 2: First row as headerStep 3: Delete first rowStep 4: Replace %Step 5: Convert to NumberStep 6: Ready
JGSmith123 first row has value '24.80%' where '%' is blocking it to be converted to a number. You can simply do replace values in power bi desktop query editor and remove '%' sign and that should work.
Thank you very much for your response!
Here is a picture of me trying to do just that but I keep getting an error message saying that I need to enter a numerical value.
- Eric_Zhang10 years agoMicrosoft Employee
JGSmith123 wrote:
Thank you very much for your response!
Here is a picture of me trying to do just that but I keep getting an error message saying that I need to enter a numerical value.
Undo the "Changed Type" step (namely revert this column from decimal to text) and then replace the "%" with blank.
I've also noticed that there're more invalid rows appended. Do remember to uncheck them.
- Vvelarde10 years agoCommunity Champion
Replace "%" before to convert to number the columns.
A guide:
Step 1:Step 1: Edit QueryStep 2: First row as headerStep 3: Delete first rowStep 4: Replace %Step 5: Convert to NumberStep 6: Ready