Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Farros
New Member

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

16997958786726407500093712017204.jpg

1 ACCEPTED SOLUTION
v-stephen-msft
Community Support
Community Support

Hi @Farros ,

 

I created a sample data for reference. As you can see, "$8,414" is text data ype just like you.

vstephenmsft_0-1700035670218.png

You can directly change the data type as numeric type.

vstephenmsft_1-1700035742776.png

vstephenmsft_2-1700035793816.png

If you insist on removing the dollar sign, then you can use the Split feature.

vstephenmsft_3-1700035873454.pngvstephenmsft_4-1700035897096.pngvstephenmsft_5-1700035902251.png

 

 

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.           

 

View solution in original post

4 REPLIES 4
v-stephen-msft
Community Support
Community Support

Hi @Farros ,

 

I created a sample data for reference. As you can see, "$8,414" is text data ype just like you.

vstephenmsft_0-1700035670218.png

You can directly change the data type as numeric type.

vstephenmsft_1-1700035742776.png

vstephenmsft_2-1700035793816.png

If you insist on removing the dollar sign, then you can use the Split feature.

vstephenmsft_3-1700035873454.pngvstephenmsft_4-1700035897096.pngvstephenmsft_5-1700035902251.png

 

 

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.           

 

j_ocean
Helper V
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.

ronrsnfld
Super User
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.

HotChilli
Super User
Super User

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

Then change the data type

 

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors