RadarSoft.RadarCube.Web.MSAS Send comments on this topic.
AddCalculatedMeasure(TDataTable,Type,String,String,String) Method
See Also 
RadarSoft.RadarCube.Web Namespace > TOLAPCube Class > AddCalculatedMeasure Method : AddCalculatedMeasure(TDataTable,Type,String,String,String) Method




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.
SourceColumnName
If specified defines the source column for the new calculated field. See AddCalculatedColumn method for details.
SourceColumnFormat
If specified defines the format mask to apply to the source field value. See AddCalculatedColumn method for details.
Adds a new measure based on a calculated field to the cube.

Syntax

Visual Basic (Declaration) 
Public Overloads Function AddCalculatedMeasure( _
   ByVal SourceTable As TDataTable, _
   ByVal DataType As Type, _
   ByVal DisplayName As String, _
   ByVal SourceColumnName As String, _
   ByVal SourceColumnFormat As String _
) As TCubeMeasure
Visual Basic (Usage)Copy Code
Dim instance As TOLAPCube
Dim SourceTable As TDataTable
Dim DataType As Type
Dim DisplayName As String
Dim SourceColumnName As String
Dim SourceColumnFormat As String
Dim value As TCubeMeasure
 
value = instance.AddCalculatedMeasure(SourceTable, DataType, DisplayName, SourceColumnName, SourceColumnFormat)
C# 
public TCubeMeasure AddCalculatedMeasure( 
   TDataTable SourceTable,
   Type DataType,
   string DisplayName,
   string SourceColumnName,
   string SourceColumnFormat
)
Managed Extensions for C++ 
public: TCubeMeasure* AddCalculatedMeasure( 
   TDataTable* SourceTable,
   Type* DataType,
   string* DisplayName,
   string* SourceColumnName,
   string* SourceColumnFormat
) 
C++/CLI 
public:
TCubeMeasure^ AddCalculatedMeasure( 
   TDataTable^ SourceTable,
   Type^ DataType,
   String^ DisplayName,
   String^ SourceColumnName,
   String^ SourceColumnFormat
) 

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.
SourceColumnName
If specified defines the source column for the new calculated field. See AddCalculatedColumn method for details.
SourceColumnFormat
If specified defines the format mask to apply to the source field value. See AddCalculatedColumn method for details.

Return Value

Returns the newly created measure.

Remarks

Adds a new measure to the cube, when it is created in run time. Unlike AddMeasure, this method creates a new calculated field instead of retrieving measure values from an existing one. If you like, you may add a new calculated field through AddCalculatedColumn, and then use it for creating a new measure through AddMeasure.

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

© 2010 Radar-Soft, L.L.C. All Rights Reserved.