Go to primary content

Expression Editor

For an attribute dimension, use this editor to specify an expression for the properties of the All member or of a level.

All Member Property Expressions

The panel on the right is the Expression Editor. For the value that you want the property to have, enter a single quoted string literal or a SQL CASE statement in the form sys_context(USERENV,LANGUAGE) .

To see examples of CASE statements, in the left panel, expand the Snippets folder and hover the cursor over All Dimension Members. To add those examples to the Expression Editor, double-click All Dimension Members. You can then modify the CASE statements as you please.

You can easily change the language in a statement by doing the following:

  1. In the left panel, expand the Languages folder.

  2. In the Expression Editor panel, select the language to change

  3. In the left panel, double-click a language.

For example, if you have populated the Expression Editor with the All Dimension Members snippets, in the first WHEN clause, double-click FRENCH. In the Languages list, double-click ALBANIAN. The language in the WHEN clause changes to ALBANIAN.

Level Expressions

The Expression Editor is the same as for All Member properties except that it has the default value <None>.

In the left panel, the Snippets folder contains has the additional Attributes folder, which lists the available attributes for the level. To use one of the available attributes, delete the default value from the Expression Editor, expand the Attributes folder and double-click an attribute.

Icons for Expression Editor

The expression editor provides some or all of the following tools:

Icon Description
Undo

Undo: reverses the last change.

Redo

Redo: reapplies the last change after it is reversed.

Cut

Cut: copies the selected text to the clipboard and deletes it from the text area.

Copy

Copy: copies the selected text to the clipboard.

Paste

Paste: copies the contents of the clipboard to the text area.

Clear

Clear: erases the entire contents of the text area .

Format

Format: formats the expression into individual lines.