Condividi tramite


OrdinalPosition (Measure Interface)

[!NOTA]

  Questa caratteristica verrà rimossa a partire dalla prossima versione di Microsoft SQL Server. Non utilizzare questa caratteristica in un nuovo progetto di sviluppo e modificare non appena possibile le applicazioni in cui è attualmente implementata.

The OrdinalPosition property of the Measure interface contains the ordinal position of the measure in the Measures collection of the parent object.

Applies To:clsAggregationMeasure, clsCubeMeasure, clsPartitionMeasure

Data Type

Integer

Access

Read-only

Osservazioni

If no default measure is specified, the first measure is the default measure for the cube. If a Multidimensional Expressions (MDX) expression or query does not contain an explicit reference to a measure, the Analysis server performs the command using the default measure.

Esempio

Use the following code to return the ordinal position of a measure object:

Dim OrdPos As Integer
OrdPos = MeasureObject.OrdinalPosition

Vedere anche

Riferimento