You can recalculate the key figures in a structure using a formula. You can include basic key figures, restricted key figures, and calculated key figures in the formula definition.
Defining a Formula
You can also call the Change Formula dialog box from the Properties screen area by pressing the Edit pushbutton.
You make the basic settings on the General tab page.
You enter a description of the formula in the text field provided in the upper part of the screen.
You canuse text variables in the description.
You can also enter a technical name in the Technical Namefield.
The formula entry field is below the text fields. The area to the bottom left contains all the operands available for defining the formula. These are:
The structure elements that you have already defined for the structure
The cells that you have defined as exception cells
All form variables
On the right side of the screen, you see the functions that are available as operators:
Basic functions
Mathematical functions
Trigonometric functions
Above these two areas, the symbols for basic arithmetical operations are displayed. To the right, there is a numeric pad.
To define a formula, proceed as follows:
You can also enter digits, parentheses and basic arithmetical operations using the keyboard.
The system does not check whether the formula makes sense semantically, for example, if it contains the same units. Semantic checks are performed with the Check Query function. You call this function in theQuery Designer Toolbar.
If you want to use a variable that is not contained in the operands while defining a formula, you first need to create the variable. Highlight the Formula Variable entry and choose New Formula from the context menu. The Variables Wizard now appears. This guides you step-by-step through the process for defining a new variable.
If you want to change a formula variable, select the variable and choose Edit from the context menu. The Variables Editor appears.
Note that when you execute a query, the key figures are always calculated as the same unit. This means that a formula is semantically incorrect if, for example, a currency unit (like USD) is added to a weight unit (like kg). If you want to calculate values regardless of the unit, use the Value Without Dimension (Without Units) function . SeeData Functions.
Editing a Formula
You can also call the Change Formula dialog box from the Properties screen area by pressing the Edit pushbutton.
Defining Properties for the Formula
Defining Inverse Formulas
If you set formulas for planning applications as input-ready (in the formula properties on the Planning tab), an inverse formula is required for every input-ready operand in the formula. The inverse formula makes it possible to recalculate the valued entered back to the input-ready formula's operand.
More information:Input-Ready Query andDefining Inverse Formulas.
See also: