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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

new to power bi -

Hi guys,

 

I'm new to Power BI and struggling to convert data in the Query editor, which seeems to be stored as text (numbers are stored to the left of the cell) to decimal numeric format. The error message that pops up is "we can't automatically convert the column to decimal number type". I'd appreciate if you can propose any reasonably straightforward panacea to my issues.

 

Thanks a lot,

Filip

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

HI, @Anonymous 

Perhaps you have encountered an error like the one below.

v-angzheng-msft_0-1622708989804.png

Powerbi cannot directly correct the data. Maybe your data value contains invisible placeholders such as spaces.

The solution is to modify the type in Power Query. Power Query has certain error correction capabilities, but If there are obviously different types of values in your column, errors may occur, such as numbers and letters at the same time, then you need to modify the data.

 

Click: Transform data>>Transform>>Data Type

v-angzheng-msft_1-1622709808607.png

 

Hope this help

 

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.

View solution in original post

7 REPLIES 7
v-angzheng-msft
Community Support
Community Support

HI, @Anonymous 

Perhaps you have encountered an error like the one below.

v-angzheng-msft_0-1622708989804.png

Powerbi cannot directly correct the data. Maybe your data value contains invisible placeholders such as spaces.

The solution is to modify the type in Power Query. Power Query has certain error correction capabilities, but If there are obviously different types of values in your column, errors may occur, such as numbers and letters at the same time, then you need to modify the data.

 

Click: Transform data>>Transform>>Data Type

v-angzheng-msft_1-1622709808607.png

 

Hope this help

 

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.

PaulDBrown
Community Champion
Community Champion

@Anonymous 

You may well have values in the field/column which cannot be converted. Try changing the sort order of the column to see if values appear which cannot be transformed





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






ERD
Community Champion
Community Champion

Hi @Anonymous ,

It would increase your chances to get a response if you can provide some examples of data.

How to Get Your Question Answered Quickly  

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

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

Check out my latest demo report in the data story gallery.

Stand with Ukraine!


Here are official ways you can support Ukraine financially (accounts with multiple currencies):
1) Support the Armed Forces of Ukraine: https://bank.gov.ua/ua/about/support-the-armed-forces
2) Come Back Alive foundation: https://www.comebackalive.in.ua/

Thank you!

Anonymous
Not applicable

Hi @ERD ,

 

Hereby I provide a snapshot of the two problematic columns (capital return and annualised capital return). Sales commission also seems to be stored as text but I do not intend to utilise it. Let me know whether I should provide the Excel file itself.

example june.PNG

ERD
Community Champion
Community Champion

@Anonymous ,

Please, provide .pbix / Excel or just paste the values in table here. There might be some hidden symbols that may affect yoor case. 

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

Check out my latest demo report in the data story gallery.

Stand with Ukraine!


Here are official ways you can support Ukraine financially (accounts with multiple currencies):
1) Support the Armed Forces of Ukraine: https://bank.gov.ua/ua/about/support-the-armed-forces
2) Come Back Alive foundation: https://www.comebackalive.in.ua/

Thank you!

Anonymous
Not applicable

Problem is that once I decide to replace all "nulls" data with nothing(empty string) in the 2 columns I target swtich back to "any" format in the query editor after I have previously converted it to decimal numeric.

Anonymous
Not applicable

Sadly, I cannot find an attachment of files button and I cannot paste the numbers here as they exceed the character limit.

Helpful resources

Announcements
ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.