SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 67027: User formatting might be lost in Microsoft Excel when a SAS® Visual Analytics report object results in an empty set of data

DetailsHotfixAboutRate It

You might lose your formatting in Microsoft Excel under the following conditions:

  • You import a SAS Visual Analytics report into Excel.
  • You apply user formatting to report objects directly in Excel.

For example, you encounter this issue when you complete steps similar to the following:

  1. Create a new report in SAS Visual Analytics that contains a drop-down list on Page1. The drop-down list is based on a parameter that filters all report objects on Page2 and on Page3.

drop-down list

Page2 contains a list table with the following advanced filter:

( 'DriveTrain'n = 'Parameter 1'p ) AND ( 'Make'n = 'Parameter 1'p)

advanced filter

 

Note: Based on the advanced filter in the list table on Page2, the following is true:

  • When the drop-down list on Page1 is set to DriveTrain (no value selected), all values are displayed in the list table on Page2.
  • When the drop-down list on Page1 is set to any values (All, Front, or Rear), no values are displayed in the list table on Page2 because the filter results in an empty set of data.
  1. Save the report in SAS Visual Analytics with no values selected in the drop-down list on Page1.
  2. Open the report in SAS® Add-In for Microsoft Office. 
  3. Apply formatting to the list table as shown in the image below and save the Excel file:

formatting list table

  1. Select All from the drop-down list on Page1. This selection produces an empty set of data for the list table in Page2, which is expected.

select all from drop-down list

  1. Reset the DriveTrain\Clear filter value in the drop-down list as shown below:

reset drop-down list value

  1. Check the list table on Page2. It has partially lost the formatting as shown below:

list table lost formatting

To work around this problem, apply formatting to report objects in SAS Visual Analytics rather than in Microsoft Excel.

Click the Hot Fix tab in this note to access the hot fix for this issue.

After you have installed the hot fix, you need to perform the following steps to address the issue:

  1. Add the following option in your SAS.OfficeAddin.dll.Config file:
<configuration>
  <assemblySettings>
    <add key="RemoveFormatsFromAbandonedCells" value="false"/>
  </assemblySettings>
</configuration>
  1. Ensure that the option Apply the SAS style to the results in Tools ► Options ► Results ► SAS Results is set to Never.


Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Add-in for Microsoft OfficeMicrosoft® Windows® for x648.39.4 TS1M7
Microsoft Windows 8 Enterprise 32-bit8.39.4 TS1M7
Microsoft Windows 8 Enterprise x648.39.4 TS1M7
Microsoft Windows 8 Pro 32-bit8.39.4 TS1M7
Microsoft Windows 8 Pro x648.39.4 TS1M7
Microsoft Windows 8.1 Enterprise 32-bit8.39.4 TS1M7
Microsoft Windows 8.1 Enterprise x648.39.4 TS1M7
Microsoft Windows 8.1 Pro 32-bit8.39.4 TS1M7
Microsoft Windows 8.1 Pro x648.39.4 TS1M7
Microsoft Windows 108.39.4 TS1M7
Microsoft Windows Server 20088.39.4 TS1M7
Microsoft Windows Server 2008 R28.39.4 TS1M7
Microsoft Windows Server 2008 for x648.39.4 TS1M7
Microsoft Windows Server 2012 Datacenter8.39.4 TS1M7
Microsoft Windows Server 2012 R2 Datacenter8.39.4 TS1M7
Microsoft Windows Server 2012 R2 Std8.39.4 TS1M7
Microsoft Windows Server 2012 Std8.39.4 TS1M7
Microsoft Windows Server 20168.39.4 TS1M7
Microsoft Windows Server 20198.39.4 TS1M7
Windows 7 Enterprise 32 bit8.39.4 TS1M7
Windows 7 Enterprise x648.39.4 TS1M7
Windows 7 Home Premium 32 bit8.39.4 TS1M7
Windows 7 Home Premium x648.39.4 TS1M7
Windows 7 Professional 32 bit8.39.4 TS1M7
Windows 7 Professional x648.39.4 TS1M7
Windows 7 Ultimate 32 bit8.39.4 TS1M7
Windows 7 Ultimate x648.39.4 TS1M7
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.