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

Convert to Number error

Hi, I am trying to upload an excel sheet into PowerBI I am in Power Query Editor, I have converted the column to text & it is still giving me the error "We couldn't convert to number" Number Error.jpg

any ideas? it is driving me crazy

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

If you don't want to automatically detect the data type, you can turn off the related functions through the following article.

Data types in Power Query | Microsoft Docs

 

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

6 REPLIES 6
v-stephen-msft
Community Support
Community Support

Hi @Anonymous ,

 

I may have reproduced your problem. This is because your Vendor column contains a value of ‘10357a’, which is not a number.

vstephenmsft_1-1637565193131.png

vstephenmsft_0-1637565132804.png

Please check your Vendor column, you can find the problematic row by filtering as follows.

vstephenmsft_2-1637565226290.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.

 

 

Anonymous
Not applicable

Hi Stephen, That is why I converted the column to Text, but it is still trying to convert it to a number. I'm not sure what I have done wrong & why it won't accept that 

Hi @Anonymous ,

 

If you don't want to automatically detect the data type, you can turn off the related functions through the following article.

Data types in Power Query | Microsoft Docs

 

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.

Anonymous
Not applicable

Thanks, I have done this as it was the easiest way to create the result I want, but not sure why it wouldn't accept my change data type

selimovd
Super User
Super User

Hey @Anonymous ,

 

I guess that happens in a step before.

Can you show all the steps on the very right side?

 

There is usually an automatic conversion, make sure this  conversion it not converting the column to a number.

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 
Anonymous
Not applicable

Number Error2.jpg

Here is the step, the remove errors steps afterwards are me removing the error lines so I can move on to processing the visuals

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.