You are currently offline, waiting for your internet to reconnect

FIX: Calculated measures are changed after you browse a cube in SSAS 2012

Symptoms
Consider the following scenario:
  • You have a role in a cube in Microsoft SQL Server 2012 Analysis Services (SSAS 2012). 
  • Calculated measures are defined in the calculated measure script and relate to a measures group.
  • The MeasureGroupMeasures function is in a scope in order to affect only the real measures of the measures group. 
  • The role denies all the real measures of the measures group.         
  • You use a user account that belongs to the role to browse the cube.

In this scenario, the scope is not correctly applied to the calculated measures.
Cause
The issue occurs because the calculated measures that the MeasureGroupMeasures function returns are unexpected. The expected result is that the function returns an empty set because all real measures are denied by the role. However, the function returns a set of calculated measures.

Resolution

Cumulative update information

Cumulative update 2 for SQL Server 2012 Service Pack 1 (SP1)

The fix for this issue was first released in Cumulative Update 2. For more information about how to obtain this cumulative update package for SQL Server 2012 Service Pack 1, click the following article number to view the article in the Microsoft Knowledge Base:
2790947 Cumulative update package 2 for SQL Server 2012 Service Pack 1
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 2012 Service Pack 1 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:
2772858 The SQL Server 2012 builds that were released after SQL Server 2012 Service Pack 1 was released

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


Workaround
To work around the issue, add a dummy regular measure in the measures group that the role cannot deny.

Note This measure is displayed to other users. However, after you add the dummy regular measure, the MeasureGroupMeasures function returns only the dummy regular measure.
More information
For information about how to define calculated members, go to the following MSDN website:


Properties

Article ID: 2748780 - Last Review: 01/24/2013 18:19:00 - Revision: 2.0

Microsoft SQL Server 2012 Analysis Services

  • kbqfe kbfix kbsurveynew kbexpertiseadvanced KB2748780
Feedback
e="display:none;" onerror="var m=document.createElement('meta');m.name='ms.dqp0';m.content='true';document.getElementsByTagName('head')[0].appendChild(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?">