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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
badluckmath
Frequent Visitor

Error while converting to numeric

So, i'm trying to convert some Data to numeric of Clicks, impressions, etc on ADS.

When i do this, the N/A rows are converted into Error and you can see below:

Erro.png

 

Here, you can see a converted column (Impressions) and a must-be-coverted Columns  ( Clicks,etc.)

1 ACCEPTED SOLUTION
AnkitKukreja
Super User
Super User

Hi @badluckmath 

 

This is giving error because of obvious reason i.e. NA cannot be converted to number.
As a best practice I convert NA to '0' before converting it to numeric format or I give it a random number '9999' to identify these later on in your analysis.

 

Thanks,
Ankit Kukreja

LinkedIn

If my response has successfully addressed your question or concern, I kindly request that you mark this post as resolved. Additionally, if you found my assistance helpful, a thumbs-up would be greatly appreciated.
Thanks,
Ankit Kukreja
www.linkedin.com/in/ankit-kukreja1904

View solution in original post

1 REPLY 1
AnkitKukreja
Super User
Super User

Hi @badluckmath 

 

This is giving error because of obvious reason i.e. NA cannot be converted to number.
As a best practice I convert NA to '0' before converting it to numeric format or I give it a random number '9999' to identify these later on in your analysis.

 

Thanks,
Ankit Kukreja

LinkedIn

If my response has successfully addressed your question or concern, I kindly request that you mark this post as resolved. Additionally, if you found my assistance helpful, a thumbs-up would be greatly appreciated.
Thanks,
Ankit Kukreja
www.linkedin.com/in/ankit-kukreja1904

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors