To use IBM Cognos product documentation, you must enable JavaScript in your browser.

Example - Define a Calculation

You want to define a calculation named total_return_value_calc that you can insert into an event condition. This calculation must determine the total value of each order returned.

Steps
  1. From the Insert menu, click Calculation.

  2. In the Name box, type

    order_item_return_value_calc

  3. In the Expression box, do the following:

    The calculation expression is defined as follows:

    total([Returned items (query)].[Returned items].[Return quantity]for[Returned items (query)].[Order].[Order number])

  4. Click OK.

The calculation appears as a calculation icon  on the data items tab.

The next step in the creating an agent tutorial is to specify an event condition.