Hierarchies - Hierarchies, levels, and attribute relationships that are part of the view definition will appear in the View Items and Function portion of the Expression window. They appear in the same order as in the view explorer and regardless of whether or not they are visible or actively showing in the grid. Levels can be expanded to see the Attribute Relationships and Members folders. If attribute relationships were selected for the level, they will display when the Attribute Relationships folder is expanded.
When you add objects in this manner to the Expression, they are added in MDX format. That format includes a reference to the object dimension and hierarchy. The standard MDX format for objects commonly used in expressions follows.
You can also add objects to the expression by typing directly in the Expression portion of the window. For example expressions and MDX, see Creating Expressions for Calculated Measure Items. |
|
Measure Items - The Measure Items section lists all the measure items associated with the view. Each measure item displays as Name (Caption). The name is the unique identifier associated with the measure item, which can be seen in the Properties window for the measure item. The caption makes it user friendly. They appear in the same order as in the view explorer. You can include measure items as part of the expression using any of the following methods:
[Measures].[Name(Caption)] or [Measures].[Name] where Name is the unique identifier that you can see for the measure item displayed in the measure item folder of the expression window. You can also key in any measure that is part of the cube associated with the view. The format to use for measures is [Measures],[Name] where Name is the full name for the measure (for example, Actual Sales Sales Units or Budget Budget Amount Frozen). For example expressions and MDX, see Creating Expressions for Calculated Measure Items. |
|
Functions - A Functions folder provides you with logical, member, numeric, set, Stratum.Viewer-specific, tuple, and VBA functions that can be used for building the calculated or distinct calculated measure item expression. You can select a function by clicking, double clicking, or drag and drop. You can also key in a function directly in the Expression portion of the window. If you select a function for your expression, then the formula for it will display in the Expression section and each parameter will be enclosed in double arrows (<< >>). Function parameters enclosed in double arrows, such as «PARAMETER», are required. Parameters enclosed in brackets and double arrows, such as [«PARAMETER»], are optional. You can highlight each parameter and type over it directly in the Expression section. Or you can click the needed element from the tree structure in the window and it will be inserted into that section of the function. The Stratum.Viewer folder includes custom functions, such as cumulative and percent of total functions. If you use them in an expression, they will be preceded by a pound sign (#) to distinguish them from standard MDX functions. The Stratum.Viewer specific functions are:
There are pop-up labels for all functions, and they give you a brief description of the functions. |
|
Expression - MDX expression associated with the measure item. Note: Objects not visible in a view or not part of a view definition can be used in an expression by manually entering them into the Expression portion of the window. You must refer to them by their valid MDX format and they must exist in the cube associated with the view. |
|
Validate - Click the Validate button at any point while you are building the expression. Stratum.Viewer will verify whether or not the format of your expression is valid. If you do not click the Validate button while building the expression, then validation will be performed once you click the OK button. |