UC2 - Get Sum of Values for an Entry

This example shows how to get a sum of values for an entry. It is the continuation of UC1.

See Also
UC1 - Get 2 Tables with 2nd Table Showing Details
GROUP BY
Defining Data Queries

Context:

Source csv file for each PRODUCT_CODE:

Where:

  • Column F contains the sum of BOQ_Qty
  • Column G contains the sum of Allocated_Qty
  • Column I contains Release. The interesting value is Ordered.
  • There can be multiple lines with the same PRODUCT_CODE.

  1. Add a GROUP BY transformation processor.
  2. For this processor, add a "value" partitioner as input.PRODUCT_CODE.
  3. To have the sum of BOQ_Qty, add a Sum aggregator with the expression input.BOQ_Qty.


  4. To get the sum of the Allocated_Qty (column G) for which the Release (column I) is Ordered: add another Sum aggregator with the expression input.Allocated_Qty with the required Filter expression.