Symptoms
Assume that you run a Multidimensional Expressions (MDX) query in block mode in Microsoft SQL Server 2012 Analysis Services (SSAS 2012). The MDX query returns wrong results when the following conditions are true:
-
The model contains unary operators on one or more hierarchies.
-
The query involves more than one member from the same level of the unary operator hierarchy.
Resolution
The issue was first fixed in the following cumulative update of SQL Server.
Cumulative Update 4 for SQL Server 2012 SP2 /en-us/help/3007556
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:
Workaround
To work around this issue, run the query in block mode by setting one of the following flags to 1:
-
CellByCellCalculationMode
-
CellByCellCalculationModeForUnaryOperatorAndSemiAdditiveMeasure
Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.