Reader small image

You're reading from  Pentaho 5.0 Reporting by Example: Beginner's Guide

Product typeBook
Published inAug 2013
PublisherPackt
ISBN-139781782162247
Edition1st Edition
Tools
Right arrow
Author (1)
Right arrow

Time for action – creating a new formula


  1. We will use the formula editor to create a new formula that multiplies the Amount and Quantity. Then we will place it in the Details section so it makes its calculation row by row. Finally, we will change the type of object for the Amount and change the format in which the numbers are presented. We will create a formula to make a calculation based on the Amount and Quantity of each of the rows and place this value under the label Total. We choose the Data tab, right-click on Functions, and choose the Add Functions... option:

  2. In the new window, we go to Common | Open Formula and click on OK.

  3. We will configure the formula we just created. First, we change its name:

    • Function Name = FormulaTotal

  4. Next, we specify the calculation that this formula will make. We press the button to the right of the formula. This will open the formula editor.
  5. In the lower-right portion of the formula editor, we see only the = sign where it says Formula:.

  6. The calculation that...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Pentaho 5.0 Reporting by Example: Beginner's Guide
Published in: Aug 2013Publisher: PacktISBN-13: 9781782162247