Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

Microsoft distributes Microsoft SQL Server 2008 R2 Service Pack 2 (SP2) fixes as one downloadable file. Because the fixes are cumulative, each new release contains all the hotfixes and all the security fixes that were included with the previous SQL Server 2008 R2 Service Pack 2 fix release.

Symptoms

Assume that you run a Multidimensional Expressions (MDX) query in Microsoft SQL Server 2008 R2 Analysis Services (SSAS 2008) or Microsoft SQL Server 2012 Analysis Services (SSAS 2012) when the following conditions are true:

  • The MDX query has an Aggregate function that is used in a calculated member in a WHERE clause.

  • The Aggregate function use more than one member of the Dim.Hier hierarchy.

  • There is a scope statement that affects a member of the Dim.Hier hierarchy that is not present in the Aggregate function.

  • The Dim dimension is a parent/child dimension.

In this situation, the scope statement changes the result of the Aggregate function. This causes the MDX query to return an incorrect result.

Notes:

  • This issue can be checked by adding the EXISTING keyword to the parameter of the Aggregate function.

  • This form of MDX query is made frequently by Excel when a PivotTable object is converted to formulas (by using the CUBESET function).



Each new cumulative update for SQL Server contains all the hotfixes and all the security fixes that were included with the previous cumulative update. Check out the latest cumulative updates for SQL Server:


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

More Information

For more information about the Aggregate function (MDX), go to the following MSDN website:

General information about the Aggregate function

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×