Product |
Version |
Spotfire Analyst |
All Versions |
Keywords:
Spotfire, Excel, CSV, datatype conversion, scientific notation, workaround, Microsoft Support, data integrity, calculated column.
Introduction:
Exporting data from Spotfire to CSV and opening it in Excel presents a challenge: Excel's automatic conversion of certain data types, particularly numeric values in scientific notation.
The Challenge: Excel's Datatype Conversion Bug Excel's automatic conversion of numeric values in scientific notation distorts the original data, leading to inaccuracies when viewing CSV files exported from Spotfire.
Microsoft Support Response: Microsoft acknowledges the issue but provides no immediate solution, directing users to community threads for assistance.
Link to Microsoft Support Response
Spotfire's Workaround: Spotfire offers a practical workaround: adding a single apostrophe ('), or single quotation mark, before affected numeric values in a calculated column.
Implementation Steps: To implement this workaround in Spotfire, follow these steps:
-
Open Spotfire: Launch the Spotfire application and access the dataset containing the affected column.
-
Navigate to Add Calculated Column Dialog: Select the "Data" tab from the menu and choose "Add Calculated Column" to open the dialog box for creating calculated columns.
-
Define Calculation: In the expression editor, enter the formula to concatenate a single apostrophe ('), followed by the existing column data. For example:
Function:Concatenate("'",[Column])
-
Apply Calculation: Confirm the expression and apply the calculated column transformation to the dataset.
Example Data:
Original Format | String_Format_CSV |
---|---|
13E04 | '13E04 |
15E06 | '15E06 |
13E04 | '13E04 |
Conclusion: Spotfire's workaround empowers users to maintain data integrity when exporting CSV files for analysis in Excel, ensuring accurate data representation and facilitating informed decision-making.
Documentation Reference: