2.51 Expression

The Expression element specifies an expression, along with an optional path by which to reach an entity whose context is used to evaluate the expression. Each expression is evaluated within the context of a specific entity called the context entity.

Exactly one of the following child elements, Expression.AttributeRef, Expression.EntityRef, Expression.Function, Expression.Literal, Expression.Null, or Expression.ParameterRef MUST be specified as a child of the Expression element.

The following are the parent elements, attributes, and child elements of the Expression element.

Parent elements

Arguments

Attribute

CalculatedAttributes

Details

Filter

Grouping

Measures

Parameter

Attributes

Expression.Name

Child elements

Expression.AttributeRef

Expression.CustomProperties

Expression.EntityRef

Expression.Function

Expression.Literal

Expression.Null

Expression.ParameterRef

Expression.Path

The following is the XML Schema definition of the Expression element.          

 <xsd:complexType name="ExpressionType">
   <xsd:all>
     <xsd:element name="Path" type="PathType" minOccurs="0" />
     <xsd:element name="Function" type="FunctionType" minOccurs="0" />
     <xsd:element name="AttributeRef" type="AttributeRefType" minOccurs="0" />
     <xsd:element name="EntityRef" type="EntityRefType" minOccurs="0" />
     <xsd:element name="ParameterRef" type="ParameterRefType" minOccurs="0" />
     <xsd:element name="Literal" type="LiteralType" minOccurs="0" />
     <xsd:element name="Null" type="NullType" minOccurs="0" />
     <xsd:element name="CustomProperties" type="CustomPropertiesType" 
                  minOccurs="0" />
   </xsd:all>
   <xsd:attribute name="Name" type="NonEmptyString" use="optional" />
 </xsd:complexType>