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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
angai97
New Member

Expression Error: We cannot convert the value 5895 to type Text.

This error randomly started showing up on multiple Power BI dashboards I maintain. I am not sure why that is since I've checked the columns of the query in question and cannot find the '5895' value. I've tried removing errors or replacing null with blank values, and nothing works. 
2023-10-11 14_33_02-Freight Reporting - Power Query Editor.png

 

The error showed up in the "Expand Query" step after I merged "query 2" to the "main query". I have looked into "query 2" and no errors are showing up in any of the steps. I suspect there is an issue with "query 2" that is causing the error but I cannot figure out what the root cause is.

1 REPLY 1
edhans
Super User
Super User

In the query you are expanding, remove any Changed Type steps so it comes across as Any, or ABC/123. Then look at the expansion, and filter for data that is 5895. 

After you find and fix it remember to put the Changed Type step back. Never let the ANY data type persist to the model. 



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors