Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Unexpected behaviour in Power Query



I have a Power BI report that connects to variouys data sources (files, API)  and brings them together. I made some changes yesterday, And I started getting dataformat.error's during refresh. The error is not  associated with one row. Instead the whole step fails. After some backward steps to identify the issue , now I am at a stage where I am getting the error



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



at the sorting step where I was hoping to find some problematic data... 




The immediate step before refreshes fine. It s the step where I converted the values to text in order to debug if something was wrong with the data I have,,,




Any suggestions? 





Frequent Visitor

Well it turned out to be one of the export files had missing columns, so some columns had mismatching type of data which was failing a group by step. I am not sure that expains Power BI behaviour though...

Frequent Visitor

I will now start to remove data sources one by one and see what happens. I  was expecting a magic solution like "OK the cached data must have been corrupt..   Click ctrl-alt-shift refresh and see if that solves it..."  

Super User
Super User

That is indeed weird.  Can you provide sample data in usable format (not as a screenshot) ?

Helpful resources

PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors