Create a calculated field

Perform the following steps to create a calculated field:

  1. Select the Data tab in the Interactive Report in which you want to add a calculated field.

  2. Navigate to the bottom of the Data tab, locate the Calculated Fields entry.

    Data tab with Calculated Fields
  3. Click the plus sign on the Calculated Fields.

    The Create Calculated Field dialog box appears.

    Creat Calculated Field dialog box
  4. Enter the values as for your calculated field as described in the following table:

Field

Description

Display Name

Enter the name of the calculated field you want displayed.

Category

Select the category of the function.

Select Fields

Select the fields to use in the formula.

Functions

Select the formula function to apply in the calculated field by double-clicking the function name. The function will appear in the Formula field. See the Pentaho Report Designer document for common formula functions.

Formula

Edit your formula field to your specifications.

Data Format

Select the data type for the calculated field you have created. The values are:

  • Numeric

  • Date

  • Other

Description

Displays the description of the selected function

Return Type

Displays the return type of the selected function. For example, SUM(2, 3) will return an integer type, while CONCATENATE("A", "B") will return a string type.

5. Click **OK**

6. (Optional) Right-click the calculated field to open a menu with the following options:

Last updated

Was this helpful?