You are currently offline, waiting for your internet to reconnect

Your browser is out-of-date

You need to update your browser to use the site.

Update to the latest version of Internet Explorer

FIX: A Distinct Count measure may return incorrect values if you define aggregations on the non-overlapping partitions in a distinct count measure group in SSAS 2008 R2

Microsoft distributes Microsoft SQL Server 2008 R2 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 fix release.
SYMPTOMS
Consider the following scenario:
  • You install Microsoft SQL Server 2008 R2 Analysis Services (SSAS 2008 R2).
  • You create non-overlapping partitions in a measure group. The measure group contains a measure that uses the DistinctCount function.

    Note Non-overlapping partitions are partitions that have non-overlapping value ranges.
  • You define aggregations on the non-overlapping partitions.
  • You run a multidimensional expression (MDX) query that queries the DistinctCount measure.
In this scenario, the DistinctCount measure may return incorrect values. For example, the returned value may be double or triple the actual value.
CAUSE
This issue occurs because the usage of an aggregation in the MDX query causes SSAS 2008 R2 to incorrectly scan the aggregation multiple times. This issue only occurs when you set up non-overlapping partitions that contain the DistinctCount measure.
RESOLUTION

Cumulative update information

SQL Server 2008 R2

The fix for this issue was first released in Cumulative Update 6. For more information about how to obtain this cumulative update package for SQL Server 2008 R2, click the following article number to view the article in the Microsoft Knowledge Base:
2489376 Cumulative Update package 6 for SQL Server 2008 R2
Note Because the builds are cumulative, each new fix release contains all the hotfixes and all the security fixes that were included with the previous SQL Server 2008 R2 fix release. We recommend that you consider applying the most recent fix release that contains this hotfix. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
981356 The SQL Server 2008 R2 builds that were released after SQL Server 2008 R2 was released
STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Properties

Article ID: 2501558 - Last Review: 02/21/2011 17:51:00 - Revision: 1.0

  • Microsoft SQL Server 2008 R2 Analysis Services
  • kbqfe kbfix kbexpertiseadvanced kbsurveynew KB2501558
Feedback
ppendChild(m);" onload="var m=document.createElement('meta');m.name='ms.dqp0';m.content='false';document.getElementsByTagName('head')[0].appendChild(m);" src="http://c1.microsoft.com/c.gif?"> ndow.location.protocol) + "//c.microsoft.com/ms.js'><\/script>");