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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Maureen
Helper III
Helper III

Power Query Error message

I keep getting this message in the query editor even though all of my columns are text.  I was originally trying to pivot a column without aggregation and got this error.... . any suggestions...

 

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

1 REPLY 1
ichavarria
Solution Specialist
Solution Specialist

Hi @Maureen,

The error message "DataFormat.Error: We couldn't convert to Number" usually occurs when Power Query is trying to convert a value to a number data type, but it is not able to do so. This can happen if there are non-numeric characters in a column that is being converted to a number.

 

To troubleshoot this error, you can try the following steps:

  1. Check the data type of each column in your query: Make sure that each column has the correct data type assigned to it. If any columns have an incorrect data type, you can change it using the "Data Type" dropdown menu in the "Transform" tab.

  2. Check for non-numeric characters: Make sure that there are no non-numeric characters in any columns that are being converted to a number data type. You can use the "Replace Values" function in the "Transform" tab to replace any non-numeric characters with a blank or zero value.

  3. Check for null or empty values: Make sure that there are no null or empty values in any columns that are being converted to a number data type. You can use the "Replace Values" function to replace any null or empty values with a blank or zero value.

  4. Check the data source: If the above steps do not resolve the issue, it is possible that the issue is with the data source itself. Check the data source for any issues that may be causing the error.

If none of these steps resolve the issue, you may need to provide more details like, for example, the .PBIX file to provide you with further troubleshooting. 

Best regards, 

Isaac Chavarria

If this post helps, then please consider Accepting it as the solution and give Kudos to help the other members find it more quickly

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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