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
jdaily83
Helper II
Helper II

Why is power query adding extra numbers to data from excel?

For instance, the excel file which is the data source states 31800044.0307 but in power query it's showing 31800044.030699998.  both data types are text in excel and in power query. this is occurring for thousands of rows so I really don't want to have to go through and replace values 1 by 1. I need these to be correct because they're project numbers that I need to match the project unique identifer table. 

 

Please help

1 ACCEPTED SOLUTION
jdaily83
Helper II
Helper II

Issue was with the file, once the report was opened in xls it tried to transform the project number and was causing the error. I have pulled the original files in using text/csv

View solution in original post

11 REPLIES 11
jdaily83
Helper II
Helper II

Issue was with the file, once the report was opened in xls it tried to transform the project number and was causing the error. I have pulled the original files in using text/csv

v-cgao-msft
Community Support
Community Support

Hi @jdaily83 ,

 

Based on testing, I didn't get the same results as you. Below are the test steps.

First create the [project numbers] column in excel, select this column, and make sure this column is in text type.

vcgaomsft_0-1649224455392.png

Connect to the data source and transform the data.

vcgaomsft_1-1649224568541.png

Make sure the data type of the [project numbers] column is text. Close and apply

vcgaomsft_3-1649224881186.png

Results have not changed.

vcgaomsft_4-1649224944384.png

 

Excel supports setting data types by cell, the same column may have different data types. And when you select the entire column, it will not display which data types are included. It is recommended that you select the [project numbers] column and reset it to the text type and save.

 

Best Regards,
Community Support Team_Gao

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems with it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

Thank you for your feedback, I checked both the excel file for the fields and confirmed that they are saved as text. I also checked the data type in Power Query and confirmed that it's saved as text. Please help as I can't use this column as a unique identifier/relationship

 

jdaily83_0-1649811280720.png

jdaily83_1-1649811360318.png

 

 

Hi @jdaily83 ,

 

Would you mind providing an Excel file with no private information? I would like to test the [Project#] column in Power Query Editor, thanks in advance.

 

How to provide sample data

 

Best Regards,
Community Support Team_Gao

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems with it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

please note I also tried to create a new query in hopes that I altered something in one of the steps but it pulled in with the same data and all of the extra numbers.

Please let me know if you can access the below

https://1drv.ms/x/s!AnS3coMvk-0jgbFMbdtW7oOqY4f7sQ?e=KuoTFs

 

Hi @jdaily83 ,

 

After testing, perhaps the problem lies in the data of the EXCEL workbook. This is beyond my knowledge and you can ask questions here.

Microsoft Excel Community

In the meantime, I will continue to look for the cause of the problem, and I will get back to you as soon as there is progress.

 

Best Regards,
Community Support Team_Gao

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems with it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

Thank you, I will post with them. In the meantime I suppose doing a replace values may help, a lot of them have similar extra digits so hopefully that will eliminate it from the thousands of ones that aren't matching up. 

Hi @jdaily83,

 

Is this problem solved? I found a post today documenting a similar issue, hope this helps you.

Why Excel show value on CELL not same as FORMULA BAR - Microsoft Community

Best Regards,
Community Support Team_Gao

amitchandak
Super User
Super User

@jdaily83 , the Decimal number does approximation (Binary to decimal conversion). So you can see those differences. In Column tools limit the decimal places, You will see same output

Thank you for your response. However, since these are project numbers some of them may be 123456.01 or 123456.002  or 123456.1  so I cannot just decrease the decimal to the same amount for the entire column.  Is there another solution?  

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.