Forum Discussion
How to remove dollar sign in string type data and change to numeric data
- Anonymous2 years ago
Hi Farros ,
I created a sample data for reference. As you can see, "$8,414" is text data ype just like you.
You can directly change the data type as numeric type.
If you insist on removing the dollar sign, then you can use the Split feature.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
4 Replies
- HotChilli
Community Champion
Use 'Replace Values' by right-clicking on the column header. Replace $ with nothing/nada/zilch
Then change the data type
- ronrsnfld
Super User
My Power BI recognizes those strings as Currency.Type. You might be able to just change the #"Changed Type" step from ...{"Sales", type text}... to ...{"Sales", type number}... or even ...{"Sales",Currency.Type}... If you are in a different country, you might need to add the Culture to that step.
- j_ocean
Helper V
Convert to dollar type (or fixed decimal however its named).
If that doesn't cut it a simple replace values should get rid of the $s, then you can convert it to floating point or whatever.
- AnonymousNot applicable
Hi Farros ,
I created a sample data for reference. As you can see, "$8,414" is text data ype just like you.
You can directly change the data type as numeric type.
If you insist on removing the dollar sign, then you can use the Split feature.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.