FlowmageDocs

Group

Groups rows by a field and counts, sums or averages each group.

Settings

SettingWhat it is
RowsThe list to total up.
Group byThe field whose values become one row each. Rows with no value for it group together.
TotalsEvery group carries count. A result column is named field_function, for example total_sum.
Technical details
KeyValue
rowsany JSONits `{{ }}` must give an array
groupBytext
aggregateslist of {field: text, function?: "sum" or "avg" or "min" or "max"}, by default []

Output

FieldType
rowsGroupsarray
countGroup countnumber
Sample output, and the expression for each field
  • count1
  • rows
    • [0]
      • count2
      • customer"Café De Zon"
      • total_sum211.5

Errors

When a step of this node stops a run, the run page shows a code. Look it up:

Example step

The step as a flow file holds it. Replace each value in <…>.

{
  "config": {
    "aggregates": [],
    "groupBy": "",
    "rows": "<rows>"
  },
  "label": "Group",
  "type": "list.group",
  "version": 1
}