FIX: A calculation error occurs when a secured measure is queried in SSAS 2017

Applies to: SQL Server 2017 Developer on WindowsSQL Server 2017 Enterprise on WindowsSQL Server 2017 Enterprise Core on Windows


Assume that you have Microsoft SQL Server Analysis Services (SSAS) installed on SQL Server 2017, and a role is defined with a secured column. If a measure with the name Calculated Measure Name references that secured column and a user who belongs to that role runs a query that references Calculated Measure Name, the user may receive an error message that resembles the following:

MdxScript(model) (LineNumber,ColumnNumber) Calculation error in measure 'CalculatedmeasureName' : Column 'ColumnName' cannot be found or may not be used in this expression.

The user should instead receive an error message that states that the measure does not exist. Because the column is secured, the measure should also be automatically secured, and the user should not receive any indication in the error that the measure is a valid measure.


This issue is fixed in the following cumulative update for SQL Server:

       Cumulative Update 7 for SQL Server 2017


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


Learn about the terminology that Microsoft uses to describe software updates.