SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 40091: AGGREGATE_TOTAL function in the SAS® OLAP Server can restrict access to members with unexpected results

DetailsHotfixAboutRate It

In SAS® 9.2, a new function, AGGREGATE_TOTAL, was created to provide faster results when filters are used in OLAP queries. In some cases, this function might restrict access to members with unexpected results.

Here is an example of using the AGGREGATE_TOTAL function in 9.2:

WITH
AGGREGATE_TOTAL as '{[Products].[All Products].[FURNITURE].[BED], [Products].[All Products].[OFFICE].[CHAIR]}'

MEMBER [Measures].[MyTest] AS 
   [Measures].[ActualSum] / ([Measures].[ActualSum], [Products].[All Products]), format_string="Percent10.2"

SELECT 
  {[Geography].[All Geography].children} ON ROWS,
  {[Measures].[ActualSum], [Measures].[MyTest]} on COLUMNS
FROM [SalesCube]

image label


In SAS 9.1, the same query uses the AGGREGATE function and returns a different result:

WITH
MEMBER [Products].[All Products].[Filtered] AS AGGREGATE({[Products].[All Products].[FURNITURE].[BED], [Products].[All Products].[OFFICE].[CHAIR]})

MEMBER [Measures].[MyTest] AS 
   [Measures].[ActualSum] / ([Measures].[ActualSum], [Products].[All Products]), format_string="Percent10.2"

SELECT 
  {[Geography].[All Geography].children} ON ROWS,
  {[Measures].[ActualSum], [Measures].[MyTest]} on COLUMNS
FROM [SalesCube]
WHERE ([Products].[All Products].[Filtered])]

image label

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



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemSAS OLAP Serverz/OS9.2 TS2M09.3 TS1M0
Microsoft® Windows® for 64-Bit Itanium-based Systems9.2 TS2M09.3 TS1M0
Microsoft Windows Server 2003 Datacenter 64-bit Edition9.2 TS2M09.3 TS1M0
Microsoft Windows Server 2003 Enterprise 64-bit Edition9.2 TS2M09.3 TS1M0
Microsoft Windows XP 64-bit Edition9.2 TS2M09.3 TS1M0
Microsoft® Windows® for x649.2 TS2M09.3 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9.2 TS2M09.3 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9.2 TS2M09.3 TS1M0
Microsoft Windows Server 2003 Standard Edition9.2 TS2M09.3 TS1M0
Microsoft Windows Server 2003 for x649.2 TS2M09.3 TS1M0
Microsoft Windows Server 2008 for x649.2 TS2M09.3 TS1M0
Microsoft Windows XP Professional9.2 TS2M09.3 TS1M0
Windows Vista9.2 TS2M09.3 TS1M0
Windows Vista for x649.2 TS2M09.3 TS1M0
64-bit Enabled AIX9.2 TS2M09.3 TS1M0
64-bit Enabled HP-UX9.2 TS2M09.3 TS1M0
64-bit Enabled Solaris9.2 TS2M09.3 TS1M0
HP-UX IPF9.2 TS2M09.3 TS1M0
Linux9.2 TS2M09.3 TS1M0
Linux for x649.2 TS2M09.3 TS1M0
OpenVMS on HP Integrity9.2 TS2M09.3 TS1M0
Solaris for x649.2 TS2M09.3 TS1M0
* 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.