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
Anonymous
Not applicable

error when converting text to number

Community, I am trying to convert text to number (or currency). I am still very new to Power Query so i am sure this is somethign rpetty simple but i literally spent 5h trying to figure it out 😞 

 

please help

 

martchi_0-1645221572175.png

martchi_1-1645221656786.png

 

 

1 ACCEPTED SOLUTION
watkinnc
Super User
Super User

I would Select the columns Amount 1 and Amount 2, right click, and choose   Change Type, then Using Locale, and then select whichever locale, but United States or us-En (I can't remember the parameters but it's a dropdown). Then select "Currency" as the type.

 

Good Luck!


--Nate


I’m usually answering from my phone, which means the results are visualized only in my mind. You’ll need to use my answer to know that it works—but it will work!!

View solution in original post

3 REPLIES 3
v-angzheng-msft
Community Support
Community Support

Hi, @Anonymous 

Select the target column, click the Data Type drop-down option in the UI to select the data type you want, or click Detect Data Type.
If you can't convert to numeric type successfully, there may be invisible non-printing characters in the column. You can click the format drop-down option in the UI, select Trim in the options, and then convert the data type.

vangzhengmsft_0-1645508988471.png

Tip: Data is left-aligned for text types, and right-aligned for numeric types.

 

If you need to format the data in the column as currency, select the column in PowerBI and click the format icon in the UI.

vangzhengmsft_1-1645509212854.png

 

 

Best Regards,
Community Support Team _ Zeon Zheng


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

This worked out perfectly , Thanks

watkinnc
Super User
Super User

I would Select the columns Amount 1 and Amount 2, right click, and choose   Change Type, then Using Locale, and then select whichever locale, but United States or us-En (I can't remember the parameters but it's a dropdown). Then select "Currency" as the type.

 

Good Luck!


--Nate


I’m usually answering from my phone, which means the results are visualized only in my mind. You’ll need to use my answer to know that it works—but it will work!!

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