Forum Discussion

mrreisinger's avatar
mrreisinger
Frequent Visitor
4 years ago
Solved

DataFormat.Error: We couldn't convert to Number - for columns with text and numerical values

I'm running into issues when I refresh my data and my tables have columns where I occusionally get the error "DataFormat.Error: We couldn't convert to Number."  I'm assuming this is because 98% of th...
  • v-yanjiang-msft's avatar
    4 years ago

    Hi mrreisinger ,

    I create a sample to reproduce your problem, here's a sample.

    After load the table, the Power Query automatically recognizes that the data type of the column is text.

    After I change the data type to number, it cause errors. This is easy to understand, because A1, A2 cannot be converted to numeric type.

    But now I convert it to text type again, it is still error!

    You should delete the error steps in APPLIED STEPS, and then do other operations. Here's a similar thread for your reference.

     

    Additionally, you can catch an error with try and otherwise  expression, refer to this document: 

    Error handling for Power Query connectors - Power Query | Microsoft Docs

    iferror-in-power-query-using-try-otherwise

     

    Best Regards,
    Community Support Team _ kalyj

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