Adds a new measure based on a calculated field to the cube.
Syntax
| Visual Basic (Usage) | Copy Code |
|---|
Dim instance As TOLAPCube
Dim SourceTable As TDataTable
Dim DataType As Type
Dim DisplayName As String
Dim value As TCubeMeasure
value = instance.AddCalculatedMeasure(SourceTable, DataType, DisplayName) |
Parameters
- SourceTable
- Defines the table the calculated field must be located in.
- DataType
- Defines the type of data in the new calculated field.
- DisplayName
- Defines the name of the new measure. The calculated field is given the same name.
Return Value
Returns the newly created measure.
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also