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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

Excel Exponential format problem

I am tring to load an Excel sheet with a column that looks like this:

 
Serial
SPF14S4P6
 
3.56422E+14
3.55624E+14
8.67427E+14
3.53484E+14

 

Power Bi loads this as text so I lose some digits at the end of each entry due to the exponential notation. I can't expect my client to edit the Excel doc in this case. I've tried other solutions posted here without success. Part of the problem here is that there are some actual text strings present in the column. Is there any way Power Bi can deal with this? Help would be much appreciated!

 

 

 

 

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

That is a limitation of excel itself as you can see in the link below excel only saves the first 15 numbers, so even if you add a xlsx you would get zeros and not the values.

 

https://support.microsoft.com/en-us/help/269370/last-digits-are-changed-to-zeroes-when-you-type-long-numbers-in-cells

 

On the first post you add the exponential was of 14 so everything worked properly, if you are abble to extract in text, csv or similar maybe the issue can be solved.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

5 REPLIES 5
MFelix
Super User
Super User

Hi @Anonymous ,

 

Add a new colum and do the following syntax:

 

try Number.ToText(Number.From([Serial])) otherwise [Serial]

 

This will test if the value can be converted to number if yes returns the full number otherwise returns the value

 

MFelix_0-1596579781337.png

MFelix_1-1596579800050.png

Now delete the first column and rename the second one.

 

It's also possible doing it without adding a new column but you need some advance techniques in power query check the video below you just need to adjust the replace to the formula I have above.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Anonymous
Not applicable

@MFelix Thanks, that's a very cool trick! Unfortunately I still lose my last digits, they just turn to zeros. Ie 8,69113E+24   becomes 8691130400900000000000000. 

 

As mentioned in another reply, I've noticed the problem goes away when open the doc and save as .xlsx. The original is a .xls. The data source is an export from an old software program and exporting as .xlsx is not an option 😞

Hi @Anonymous ,

 

That is a limitation of excel itself as you can see in the link below excel only saves the first 15 numbers, so even if you add a xlsx you would get zeros and not the values.

 

https://support.microsoft.com/en-us/help/269370/last-digits-are-changed-to-zeroes-when-you-type-long-numbers-in-cells

 

On the first post you add the exponential was of 14 so everything worked properly, if you are abble to extract in text, csv or similar maybe the issue can be solved.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



mahoneypat
Microsoft Employee
Microsoft Employee

Do you plan to keep the text and numbers in the same column ultimately?  One thing you could do is duplicate the column, convert one to # and the other to text, replace the errors with null.  That way you will have a column with #s for calculations and another column with your text values.

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Anonymous
Not applicable

@mahoneypat Thanks very much for your reply. Unfortunately I still lose my last digits, they just turn to zeros. Ie 8,69113E+24   becomes 8691130400900000000000000. 

 

I've noticed the problem goes away when open the doc and save as .xlsx. The original is a .xls. The data source is an export from an old software program and exporting as .xlsx is not an option 😞

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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