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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Query editor error

Upon trying to refresh my report  (not importing anything, just refreshing), I am getting this error.    The field it is referencing..."Line" is actually a text value...even though it is a "numeric value"  1,2,3, etc.   But they are not fields I would be summing up, so they should be text values I think.   

 

I have all of the instances of this field set as text.    So not sure how to fix this error.   

 

texmexdragon_0-1596758365621.png

 

1 ACCEPTED SOLUTION
edhans
Super User
Super User

Your RMA value is coming from your Program Codes table, and the error is there. You have a Change Type step that is converting RMA to numeric, but there is text. Go there and fix it by clicking on the Changed Type step, find the RMA field and change it to Text, and then tell it to Replace when it asks, as opposed to adding a new step.



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

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , Look at the column, there should be a column with an error.

 

refer how to handle error in power query
https://www.youtube.com/watch?v=OE6DPmKqN7s
https://www.youtube.com/watch?v=9-Lag0VOiTs

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
edhans
Super User
Super User

Your RMA value is coming from your Program Codes table, and the error is there. You have a Change Type step that is converting RMA to numeric, but there is text. Go there and fix it by clicking on the Changed Type step, find the RMA field and change it to Text, and then tell it to Replace when it asks, as opposed to adding a new step.



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
dax
Community Support
Community Support

Hi @Anonymous , 

I am not sure which part cause this problem, if possible, could you please inform me more detailed information (such as yor sample data and M code, you could use virtual data instead of real data)? Then I will try to test this in my environment.

 

Please do mask sensitive data before uploading.

Thanks for your understanding and support.
Best Regards,
Zoe Zhi

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

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.