Forum Discussion
extra digits added to number when importing table
I am importing data with powerquery for further analysis
I have discovered is that the values imported contains extradigits not present in the original table.
- I "increased decimal" to make sure all my digits are captured (in my source the entries do not have all the same significant digits),
- saved as csv
- imported impacted columns as number
- convert columns as text (for future text match
- Anonymous3 years ago
Hi Mariano80 ,
It works fine on my device. It's Power Query in Power BI Desktop.
What is your data type in Excel?
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
4 Replies
- AnonymousNot applicable
Hi Mariano80 ,
It works fine on my device. It's Power Query in Power BI Desktop.
What is your data type in Excel?
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Mariano80New Member
Hello Anonymous
I think I have found an explanationā
I wrongfully assumed that my data were stored as text as I did "format as text" on the column. however they were not as only after I doubleclicked on the cell the green tick warning appeared.
after forcing the columns as text the issue was resolved. Specificall I did:- Select the full column.
- Click DATA | Text to Columns.
- In the dialog, click Next | click Next | choose Text | click Finish.
- Mariano80New Member
Hello Anonymous
thank you for your reply.I have checked and I think that I was mislead by the behaviour of excel in the source file.
I thought I had formatted the cells as text, as after applying the format they were aligned to the left. Actually they were still formatted as number, and were effectively formatted as text only after double clicking on the cells.
I still do not understand why, if floating number error is involved, extra digits are added, instead of just cutting the digits
- Mariano80New Member