Forum Discussion

Farros's avatar
Farros
New Member
2 years ago
Solved

How to remove dollar sign in string type data and change to numeric data

  • Anonymous's avatar
    Anonymous
    2 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's avatar
    HotChilli
    Icon for Community Champion rankCommunity Champion

    Use 'Replace Values' by right-clicking on the column header.  Replace $ with nothing/nada/zilch

    Then change the data type

     

  • 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.

  • 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.

  • Anonymous's avatar
    Anonymous
    Not 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.