Configuring Measure Properties
Measures have properties that enable you to define how the measures function and to control how the measures appear to users.
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.
Determines how measures are aggregated. For more information, see Aggregation Functions.
Specifies the data type of the column in the underlying fact table to which the measure is bound.
Provides a description of the measure, which may be exposed in client applications.
Specifies 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.
Determines the display format. For more information, see Display Formats.
Displays the unique identifier (ID) of the measure. This property is read-only.
Specifies a Multidimensional Expressions (MDX) expression that defines the measure.
Specifies the name of the measure.
Specifies the column in the data source view to which the measure is bound.
Determines the visibility of the measure.
Microsoft SQL Server Analysis Services provides functions to aggregate measures along the dimensions that are contained in measure groups. By default, measures are summed along each dimension. However, the AggregateFunction property lets you modify this behavior. The additivity of an aggregation function determines how the measure is aggregated across all the dimensions in the cube. Aggregation functions fall into three levels of additivity:
The following table lists the aggregation functions in Analysis Services, and describes both the additivity and expected output of the function.
Calculates the sum of values for all child members. This is the default aggregation function.
Retrieves the count of all child members.
Retrieves the lowest value for all child members.
Retrieves the highest value for all child members.
Retrieves the count of all unique child members.
No aggregation is performed, and all values for leaf and nonleaf members in a dimension are supplied directly from the fact table for the measure group that contains the measure. If no value can be read from the fact table for a member, the value for that member is set to null.
Calculates the aggregation according to the aggregation function assigned to the account type for a member in an account dimension. If no account type dimension exists in the measure group, treated as the None aggregation function.
For more information about account dimensions, see Account (Analysis Services - Multidimensional Data).
Calculates the average of values for all non-empty child members.
Retrieves the value of the first child member.
Retrieves the value of the last child member.
Retrieves the value of the first non-empty child member.
Retrieves the value of the last non-empty child member.
You 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, 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. The following table contains some examples of available named and user-defined formats. The table assumes that the regional setting in Control Panel on the client computer is English (United States).
Source data type
Display format value
Friday, December 31, 1999
For more information about valid predefined and user-defined formats, search on "format function" in the Development Tools and Languages section of the MSDN Library.