RadarSoft.RadarCube.Web.MSAS Send comments on this topic.
Expression Property
See Also  Example
RadarSoft.RadarCube.Web Namespace > TMeasure Class : Expression Property




A valid MDX expression. Uses in the MSAS versions only.

Syntax

Visual Basic (Declaration) 
Public Property Expression As String
Visual Basic (Usage)Copy Code
Dim instance As TMeasure
Dim value As String
 
instance.Expression = value
 
value = instance.Expression
C# 
public string Expression {get; set;}
Managed Extensions for C++ 
public: __property string* get_Expression();
public: __property void set_Expression( 
   string* value
);
C++/CLI 
public:
property String^ Expression {
   String^ get();
   void set (    String^ value);
}

Example

C#Copy Code
TMeasure m = TOLAPGrid1.Measures.AddCalculatedMeasure("Calculated");
m.DefaultFormat = "Currency";
m.Expression = "[Measures].[Sales Amount] / [Measures].[Order Count]";

Remarks

The value of this property will be used as an MDX expression describing the measure in the WITH MEMBER clause of the MDX queries passed to the server.

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.