SAP Knowledge Base Article - Public

2941844 - Brackets in Key Figure Creation

Symptom

You are creating a calculated key figure with a number of components, and you need to set brackets in the formula to get the desired result. However, there is no option to set brackets manually; the system sets them automatically and it may not be according to your requirement.

Let us assume the following example requirement - you would like to set up the following formula:

((A - B) / C)+1

(A, B and C stand for key figure names which are used in your formula).

When you enter this formula in the key figure wizard, you get the following result:

A - (B / (C +1))

This will yield a different result.

Environment

SAP Business ByDesign

Reproducing the Issue

  1. Go to the work center Business Analytics and the view Design Key Figures.
  2. Click New.
  3. In step 2, enter a key figure name, a data source, and the type Calculated Key Figure.
  4. Click Next.
  5. Enter your formula here.

You notice the brackets are set incorrectly and you would like to know how to change this.

Cause

You have to enter the major components of the formula first, and then proceed to add smaller and smaller parts of the formula.

This way the brackets will be added as expected.

Resolution

In this example, enter the following first:

A + 1

Then click into the A component and add the division. The brackets will be added as follows:

(A / C) + 1

Now you just need to add the subtraction by clicking into the A component again. The brackets will be added like this:

((A - B) / C) + 1

Keywords

key figure, create, business analytics, brackets, parenthesis, parentheses, klammern, formula, calculation , KBA , AP-RC-ANA , C4C, ByD, Travel: Analytics Tools & Frameworks , How To

Product

SAP Business ByDesign all versions