Create Calculated Accounts in Charts
In SAP Analytics Cloud, the Calculated Account calculation creates a new account that you can use in your chart.
Accounts, are numerical values on which you can use mathematical functions. When setting up your calculation, you’ll apply the typical formula functions, conditions, and operators to the data contained in your model.
Calculated accounts allow you to perform mathematical and Boolean operations on your data. For example, you can use a calculated account to chart the effect a sales increase of 20% would have on profits.
Functions, Conditions, and Operators
The following functions, conditions, and operators are available for creating calculated accounts. For descriptions of each option, see All Formulas and Calculations.
Functions
|
IF() |
POWER() |
NOT() |
ISNULL() |
|
ABS() |
GrandTotal() |
TRIM() |
SPLIT() |
|
LOG() |
%GrandTotal() |
FINDINDEX() |
SUBSTRING() |
|
LOG10() |
LENGTH() |
RIGHT() |
LEFT() |
|
INT() |
DOUBLE() |
ENDSWITH() |
LIKE() |
|
FLOAT() |
MEASURELOOKUP() |
Conditions
|
AND |
OR |
|
> (greater than) |
< (less than) |
|
>= (greater than or equal) |
<= (less than or equal) |
|
= (equal) |
!= (not equal) |
Operators
-
+ (addition)
-
- (subtraction)
-
* (multiplication)
-
/ (division)
Create a Calculated Account
-
Select a chart.
-
Open the Calculation Editor: in Builder, choose .
The Calculation Editor appears.
-
Select Calculated Account from the list.
-
Enter a name for the calculated account.
-
(Optional) Enter a description.
-
Enter a formula in the Edit Formula area.
Existing input controls appear in the Available Objects list, and can be added to a formula.
You can add preset functions, conditions, and operators, by selecting options in the Formula Functions list. You can use IF conditional functions, and you can display a list of possible formulas for the function by pressing Ctrl + Space bar.
The formula editor supports auto-complete and the following shortcuts:-
[ – Returns all relevant accounts:
-
Adding a calculation to the Account dimension: shows Account dimension members.
-
-
# – Returns all calculations (that is, measures created using the Calculation Editor).
-
@ – Returns input controls. (Only single value numeric input controls are returned.)
-
-
(Optional) If you want to verify that your formula is formatted correctly, select Format: it may reformat your formula before displaying a valid formula message.
In the Formatting dialog box, define Scale, Scale Formatting, Decimal Places, Show Sign As(+ / - or ( ) or Δ or ↓ / ↑), and Unit. You can either choose to select the underlying unit of measure.
-
Select OK.
An account is created based on the formula you entered, and it is displayed as a new account dimension.
If the formula uses an input control, it will appear on the canvas.
Create a Calculation Input Control
You can choose to create a calculation input control for your calculated account.
-
Under Input Controls, select Create New.
-
Enter a name for the input control.
-
(Optional) Enter a description.
-
Select Existing Dimension to allow users to pick from members of a dimension, or Static List to add custom values as options for the input control.
-
Select OK.
The input control you created appears under Available Objects.
-
Select the input control to add it to a formula.
|
Existing Dimension |
Static List |
|---|---|
|
In the Input Values section, select Click to Add Values and choose either Select by Range or Select by Member.
|
On the canvas, input controls are indicated by the (Formula) icon. If you hover over the icon, all calculations associated with the input control are displayed. By default, the input control is displayed in token mode where input values can be selected from a drop-down list. The input control can be expanded into widget mode, where radio buttons appear beside each value.

