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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
mmossman
Frequent Visitor

Converting Value to Number Error

I have a column of serial numbers where the majority of the data is numeric but there are some that are alphanumeric. I have the column formatted to text but I am still getting an "error converting value to number" message. The result is that all of those serial numbers just say ERROR instead of the serial number. This column is critical to a some downstream matching processes. How can I resolve this?

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @mmossman 

 

Usually Power Query will change column data types automatically after you connect to the data source at the first time. Please click the first "Changed Type" step in Applied Steps pane to check whether this step has the same error. If it does have the same error, remove the step. Then modify the serial number column to Text type manually. Change data type of other columns too. 

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

3 REPLIES 3
v-jingzhang
Community Support
Community Support

Hi @mmossman 

 

Usually Power Query will change column data types automatically after you connect to the data source at the first time. Please click the first "Changed Type" step in Applied Steps pane to check whether this step has the same error. If it does have the same error, remove the step. Then modify the serial number column to Text type manually. Change data type of other columns too. 

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

That did it. I also found some additional steps where PowerQuery kept trying to change it back so I fixed those also. No errors on refresh anymore.

HotChilli
Community Champion
Community Champion

can you post the Advanced Editor code please + tell us the name of the column?

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.