We have a column titled "Unique_Identifier" that is typically 3 characters long and contains numbers and letters. The column is a TEXT column in order to accommodate the number/letter combinations. The problem we are facing is when we export "as a step in the project", the Excel file is having trouble with the values that contain the letter E (ex: '0E4'). It thinks that value is an exponential number. Further more, when uploading to Power BI, our example of '0E4' is shown as _x0030_E4. We get the odd formatting if we use the file directly from the SAS export, but the weird part is if we save the excel file, then upload to Power BI, '0E4' correctly shows as '0E4'.
Any thoughts are appreciated. Thanks in advance!
Excel is causing the issue here, not SAS - but changing your method of Export should help. If using ODS EXCEL you can use tagattr to force the column to be displayed as text.
@RandyW wrote:
We have a column titled "Unique_Identifier" that is typically 3 characters long and contains numbers and letters. The column is a TEXT column in order to accommodate the number/letter combinations. The problem we are facing is when we export "as a step in the project", the Excel file is having trouble with the values that contain the letter E (ex: '0E4'). It thinks that value is an exponential number. Further more, when uploading to Power BI, our example of '0E4' is shown as _x0030_E4. We get the odd formatting if we use the file directly from the SAS export, but the weird part is if we save the excel file, then upload to Power BI, '0E4' correctly shows as '0E4'.
Any thoughts are appreciated. Thanks in advance!
Excel is causing the issue here, not SAS - but changing your method of Export should help. If using ODS EXCEL you can use tagattr to force the column to be displayed as text.
@RandyW wrote:
We have a column titled "Unique_Identifier" that is typically 3 characters long and contains numbers and letters. The column is a TEXT column in order to accommodate the number/letter combinations. The problem we are facing is when we export "as a step in the project", the Excel file is having trouble with the values that contain the letter E (ex: '0E4'). It thinks that value is an exponential number. Further more, when uploading to Power BI, our example of '0E4' is shown as _x0030_E4. We get the odd formatting if we use the file directly from the SAS export, but the weird part is if we save the excel file, then upload to Power BI, '0E4' correctly shows as '0E4'.
Any thoughts are appreciated. Thanks in advance!
How are you exporting the data into Excel from SAS.
Exporting as a step in the project
Thanks for all the quick responses. For some reason changing the output file type to .CSV (instead of .XLSX) works for us.
We will try the ODS EXCEL suggestion also.
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
Check out this tutorial series to learn how to build your own steps in SAS Studio.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.