TechNet
Export (0) Print
Expand All

MDSCHEMA_MEASURES Rowset

 

Applies To: SQL Server 2016 Preview

Describes each measure within a cube.

The MDSCHEMA_MEASURES rowset contains the following columns.

Column nameType indicatorLengthDescription
CATALOG_NAMEDBTYPE_WSTRThe name of the catalog to which this measure belongs. NULL if the provider does not support catalogs.
SCHEMA_NAMEDBTYPE_WSTRThe name of the schema to which this measure belongs. NULL if the provider does not support schemas.
CUBE_NAMEDBTYPE_WSTRThe name of the cube to which this measure belongs.
MEASURE_NAMEDBTYPE_WSTRThe name of the measure.
MEASURE_UNIQUE_NAMEDBTYPE_WSTRThe Unique name of the measure. For providers that generate unique names by qualification, each component of this name is delimited.
MEASURE_CAPTIONDBTYPE_WSTRA label or caption associated with the measure. Used primarily for display purposes. If a caption does not exist, MEASURE_NAME is returned.
MEASURE_GUIDDBTYPE_GUIDNot supported.
MEASURE_AGGREGATORDBTYPE_I4An enumeration that identifies how a measure was derived. Can be one of the following values:

 MDMEASURE_AGGR_SUM (1) identifies that the measure aggregates from SUM.

 MDMEASURE_AGGR_COUNT (2) identifies that the measure aggregates from COUNT.

 MDMEASURE_AGGR_MIN (3) identifies that the measure aggregates from MIN.

 MDMEASURE_AGGR_MAX (4) identifies that the measure aggregates from MAX.

 MDMEASURE_AGGR_AVG (5) identifies that the measure aggregates from AVG.

 MDMEASURE_AGGR_VAR (6) identifies that the measure aggregates from VAR.

 MDMEASURE_AGGR_STD (7) identifies that the measure aggregates from STDEV.

 MDMEASURE_AGGR_DST (8) identifies that the measure aggregates from DISTINCT COUNT.

 MDMEASURE_AGGR_NONE (9) identifies that the measure aggregates from NONE.

 MDMEASURE_AGGR_AVGCHILDREN (10) identifies that the measure aggregates from AVERAGEOFCHILDREN.

 MDMEASURE_AGGR_FIRSTCHILD (11) identifies that the measure aggregates from FIRSTCHILD.

 MDMEASURE_AGGR_LASTCHILD (12) identifies that the measure aggregates from LASTCHILD.

 MDMEASURE_AGGR_FIRSTNONEMPTY (13) identifies that the measure aggregates from FIRSTNONEMPTY,

 MDMEASURE_AGGR_LASTNONEMPTY (14) identifies that the measure aggregates from LASTNONEMPTY.

 MDMEASURE_AGGR_BYACCOUNT (15) identifies that the measure aggregates from BYACCOUNT.

 MDMEASURE_AGGR_CALCULATED (127) identifies that the measure was derived from a formula that was not any single function above.

 MDMEASURE_AGGR_UNKNOWN (0) identifies that the measure was derived from an unknown aggregation function or formula.
DATA_TYPEDBTYPE_UI2The data type of the measure.
NUMERIC_PRECISIONDBTYPE_UI2The maximum precision of the property if the measure object's data type is exact numeric. NULL for all other property types.
NUMERIC_SCALEDBTYPE_I2The number of digits to the right of the decimal point if the measure object's type indicator is DBTYPE_NUMERIC or DBTYPE_DECIMAL. Otherwise, this value is NULL.
MEASURE_UNITSDBTYPE_WSTRNot supported
DESCRIPTIONDBTYPE_WSTRA human-readable description of the measure. NULL if no description exists.
EXPRESSIONDBTYPE_WSTRAn expression for the member.
MEASURE_IS_VISIBLEDBTYPE_BOOLA Boolean that always returns True. If the measure is not visible, it will not be included in the schema rowset.
LEVELS_LISTDBTYPE_WSTRA string that always returns NULL.
MEASURE_NAME_SQL_COLUMN_NAMEDBTYPE_WSTRThe name of the column in the SQL query that corresponds to the measure's name.
MEASURE_UNQUALIFIED_CAPTIONDBTYPE_WSTRThe name of the measure, not qualified with the measure group name.
MEASUREGROUP_NAMEDBTYPE_WSTRThe name of the measure group to which the measure belongs.
MEASURE_DISPLAY_FOLDERDBTYPE_WSTRThe path to be used when displaying the measure in the user interface. Folder names will be separated by a semicolon. Nested folders are indicated by a backslash (\).
DEFAULT_FORMAT_STRINGDBTYPE_WSTRThe default format string for the measure.

The rowset is sorted on CATALOG_NAME, SCHEMA_NAME, CUBE_NAME, MEASURE_NAME.

The MDSCHEMA_MEASURES rowset can be restricted on the columns listed in the following table.

Column nameType indicatorRestriction State
CATALOG_NAMEDBTYPE_WSTROptional.
SCHEMA_NAMEDBTYPE_WSTROptional.
CUBE_NAMEDBTYPE_WSTROptional.
MEASURE_NAMEDBTYPE_WSTROptional.
MEASURE_UNIQUE_NAMEDBTYPE_WSTROptional.
MEASUREGROUP_NAMEDBTYPE_WSTROptional.
CUBE_SOURCEDBTYPE_UI2(Optional) Default restriction is a value of 1. A bitmap with one of the following valid values:

1 CUBE

2 DIMENSION
MEASURE_VISIBILITYDBTYPE_UI2(Optional) Default restriction is a value of 1. A bitmap with one of the following valid values:

1 Visible

2 Not Visible

OLE DB for OLAP Schema Rowsets

Community Additions

ADD
Show:
© 2016 Microsoft