Share via


clsCubeMeasure

[!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.

An object of the ClassType clsCubeMeasure provides a specific implementation of the Decision Support Objects (DSO) Measure interface. This object provides collections and properties through the Measure interface. There are no methods associated with an object of ClassType clsCubeMeasure.

Osservazioni

A cube measure corresponds to a numeric column in a cube's fact table. When a cube is processed, its measures can be precalculated across its dimensions. For example, the number of items sold is a measure that can be precalculated across the dimensions of product, time, and geography.

For more information about the object model hierarchy, see Analysis Services Objects.

Esempio

Use the following code to create an object of ClassType clsCubeMeasure:

'Assume an object (dsoCube) of ClassType clsCube exists
Dim dsoMeasure As DSO.Measure
Set dsoMeasure = dsoCube.Measures.AddNew("Salaries")
dsoMeasure.Description = "Employee salaries"
dsoMeasure.SourceColumn = """Employees"".""Salaries"""
dsoMeasure.SourceColumnType = adInteger
dsoMeasure.AggregateFunction = aggSum
dsoMeasure.FormatString = "#,###"