Summarize

Created by Reachware Support, Modified on Thu, 2 Apr at 3:02 PM by Reachware Support

Summarize performs calculations on grouped data to get totals, averages, maximums, or minimums. Use it to aggregate numeric values by category, date, branch, or any grouping key.

How to Add Summarize

1

Click the Logic Processor icon between operations

2

Select Summarize

3

Configure settings

4

Click Save

Configuration

FieldDescriptionRequired
Summarize NameDescriptive nameYes
Summarize FunctionCalculation typeYes
Group ByField to group byOptional
Summarized ValueNumeric field to calculateYes

Summarize Functions

FunctionDescriptionExample Output
SumTotal of all valuesTotal sales = 15,000
AverageMean valueAverage price = 250
Maximum ValueHighest valueMax order = 5,000
Minimum ValueLowest valueMin price = 10

How It Works

Without Grouping

Calculates across all records.

Function: Sum
Summarized Value: price

Input:

[
{ "price": 100 },
{ "price": 200 },
{ "price": 150 }
]

Output:

{
"sum_price": 450
}

With Grouping

Calculates separately for each group.

Function: Sum
Group By: branch
Summarized Value: amount

Input:

[
{ "branch": "Riyadh", "amount": 1000 },
{ "branch": "Jeddah", "amount": 500 },
{ "branch": "Riyadh", "amount": 750 }
]

Output:

{
"Riyadh": { "sum_amount": 1750 },
"Jeddah": { "sum_amount": 500 }
}

Multiple Summarized Values

You can aggregate multiple fields at once.

Function: Sum
Group By: branch
Summarized Values: price, quantity

Output:

{
"Riyadh": {
"sum_price": 2500,
"sum_quantity": 150
}
 }

Related Articles

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article