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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

DataFormat.Error: We couldn't convert to Number.

Hi, basically my database consist of staff id..now most staff id are all digits, for example

1234
4519
8901

However, there are staff id which includes a letter, for example

B1290
C9021

The error states DataFormat.Error: We couldn't convert to Number. - but the thing is my data type is not set to numbers (it is set to this logo ABC123, and i have also tried setting the type to text but it did not work. Please help 

4 REPLIES 4
JamesRobson
Resolver II
Resolver II

There are occasions when the error message DataFormat.Error: We couldn't convert to Number is misleading as the real issue is with a calculation on a totally different step.

For example I was doing a simple Free Inventory + Quarantined Inventory calculation but there was an Error value in a single Quarantined Inventory field and I was getting the DataFormat.Error: We couldn't convert to Number  error message on the last step of my query even though the calculation was done several steps before!

 

Although this doesn't directly answer your question it might give you a starting point (you could copy the query then delete steps one at a time until you find the error goes away then you know the last step you deleted had the problem??)

ChielFaber
Solution Supplier
Solution Supplier

If you add a new step at the end with keep errors. You will only get the rows with values that give an error.  That might help in pin pointing where the error occurs.

ChielFaber
Solution Supplier
Solution Supplier

Could you provide the steps out of the advanced editor? It might be that PQ converts your column automaticly or in there's a conversion in an earlier step.

Anonymous
Not applicable

is it this the one you are referring to 

humxx_0-1681805775301.png

the only type we changed was year

humxx_1-1681805804067.png

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.