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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors