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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.