!--a11y-->
Defining Calculated Key Figures 
Use
You can recalculate the key figures of an InfoProvider for reuse in the Query Designer using formulas. Calculated key figures consist of formula definitions containing basic key figures, restricted key figures or precalculated key figures.
Procedure
Defining a New Calculated Key Figure
If a calculated key figure has already been defined for this InfoProvider, you can also select the Calculated Key Figures entry and, from the context menu, choose New Calculated Key Figure.
The New Calculated Key Figure dialog box appears.
The upper part of the screen contains a text field in which you enter a description of the calculated key figure.

You can
Beneath this is the input field for the formula that you want to use to calculated the key figure. The bottom left screen area contains all of the operands available for the formula definition. These are:
On the right-hand side of the screen, you see the functions that are available as operators:
Between the operands and the functions, the symbols for the basic arithmetic operations are displayed. To the right of the functions, there is a number block.
Proceed as follows to define a formula:

You can also enter digits, parentheses and basic arithmetical operations using the keyboard.

If, when defining a formula, you want to use a variable that is not contained in the operands, you must first create the variable. Highlight the Formula Variable entry and using the right mouse button on the context menu, choose New Formula. You reach the variable wizard that takes you through a step-by-step process for defining a new variable.
If you want to change a formula variable, select the variable and, from the context menu, choose Edit. The variable editor appears.

Note that when you execute a query, the key figures are always calculated as the same unit. That is, a formula is semantically incorrect if, for example, a currency unit (for example, USD) is added to a weight unit (for example, kg). If you want to calculate values regardless of the unit, use the function Value Without Dimension (Without Units). See Data Functions.

The Formula Syntax Check
function checks only the correctness of the syntax in the formula. It does not check whether the formula makes sense semantically, for example, if it contains the same units. You make semantic checks using the function Check Query (see Functions of the BEx Query Designer).
Editing Calculated Key Figures

Note that when you change a calculated key figure, these changes are effective in all queries that use this calculated key figure.

You can see where the calculated key figure is used. Choose Where-used List from the context menu (right mouse click).
Determining Properties for the Calculated Key Figure
Result
You have defined a calculated key figure for reuse.You can now use this calculated key figure in all queries based on this InfoProvider by moving the key figure into the rows or columns of the query using Drag&Drop. The calculated key figure is not an actual element in this query, but a placeholder referenced to the calculated key figure in the InfoProvider.