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
RenaCel
New Member

DataFormat.Error: We couldn't convert to Number. Details:...

Hola amigos, tengo un problema al momento de conectar datos del Power BI a un archivo Excel.

El archivo excel es una tabla de articulos, y tiene codigos numericos y alfanumericos, los codigos alfanumericos no los reconoce el Power BI. Ejemplo

 

Mi archivo excel

 excel.png

Como se muestra en el power BI

pbi.png

 Por favor alguien que pueda ayudarme.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @RenaCel,

I make a test using your sample file.

Firstly, when importing data from Excel to Power BI Desktop,  please choose "Edit" in  the following screenshot to load data.
1.PNG

Secondly, delete the "Change Type" step in "APPLIED STEPS" .
2.PNG


Thirdly, click "Close and Apply", you will be able to see that the data are imported properly into Data View.
3.PNG

Thanks,
Lydia Zhang

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @RenaCel,

Firstly, this is English forum. Please help to post your question in English format.

Secondly, when do you get the above error message” We couldn't convert to Number”? Based on my test, there are no issues when importing your sample data to Power BI Desktop. However, if we try to convert the COD_ITEM column to numeric type column, the error message will occur, this is an expected behavior. We are not able to convert text-based string to number, but we can change text-based number columns from Text to numeric type.
1.PNG2.PNG
3.PNG

Thanks,
Lydia Zhang

Hi Lydia, The problem is when in a column has numerical and alphanumerical data. Attachment test file File

pbi1.png

 

Thanks.

Renatto

Anonymous
Not applicable

Hi @RenaCel,

I make a test using your sample file.

Firstly, when importing data from Excel to Power BI Desktop,  please choose "Edit" in  the following screenshot to load data.
1.PNG

Secondly, delete the "Change Type" step in "APPLIED STEPS" .
2.PNG


Thirdly, click "Close and Apply", you will be able to see that the data are imported properly into Data View.
3.PNG

Thanks,
Lydia Zhang

Anonymous
Not applicable

This solution is the correct! Thank a lot 

Hi Lydia, thanks!!! Smiley Very Happy

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.