Export (0) Print
Expand All

Configure Measure Properties


Applies To: SQL Server 2016

Measures have properties that enable you to define how the measures function and to control how the measures appear to users.

You can set properties in SQL Server Data Tools (SSDT) when creating or editing a cube or measure. You can also set them programmatically, using MDX or AMO. See Create Measures and Measure Groups in Multidimensional Models or CREATE MEMBER Statement (MDX) or Programming AMO OLAP Basic Objects for details.

Measures inherit certain properties from the measure group of which they are a member, unless those properties are overridden at the measure level. Measure properties determine how a measure is aggregated, its data type, the name that is displayed to the user, the display folder in which the measure will appear, its format string, any measure expression, the underlying source column, and its visibility to users.

AggregateFunctionRequired. Determines how measures are aggregated. Sum is the default aggregation. For more information, see Use Aggregate Functions for a description of each function.
DataTypeRequired. Specifies the data type of the column in the underlying fact table to which the measure is bound. This value is inherited from the source column by default.
DescriptionProvides a description of the measure, which may be exposed in client applications.
DisplayFolderSpecifies the folder in which the measure will appear when users connect to the cube. When a cube has many measures, you can use display folders to categorize the measures and improve the user browsing experience.
FormatStringYou can select the format that is used to display measure values to users by using the FormatString property of the measure.

Although a list of display formats is provided in SQL Server Data Tools (SSDT), you can specify many additional formats that are not in the list. You can specify any named or user-defined format that is valid in Microsoft Visual Basic.
IDRequired. Displays the unique identifier (ID) of the measure. This property is read-only.
MeasureExpressionSpecifies a constrained MDX expression defining the value of the measure. The expression is evaluated at the leaf level before being aggregated, and allows for weighting of a value. For example, in currency conversion where a sales amount is weighted by the exchange rate.
NameRequired. Specifies the name of the measure.
SourceRequired. Specifies the column in the data source view to which the measure is bound. See Data Sources and Bindings (SSAS Multidimensional).
VisibleDetermines the visibility of the measure in client applications.

Configure Measure Group Properties
Modifying Measures

Community Additions

© 2016 Microsoft