Statistics

action_aggregate · action · Data & Transform · Available · v1.0.0

Description

Aggregate statistics over a numeric array (or a numeric field of an object array) in pure JavaScript: count, sum, mean, min, max, MEDIAN and STANDARD DEVIATION in one pass — what n8n needs Code or Summarize for.

⚙️ Configuration parameters

Fields shown in the editor when configuring the node. Generated directly from the NodeDefconfigFields.

FieldTypeRequiredDefaultDescription
operation
Statistica
enum
allsumavgminmaxmedianstddevcount
yesall"all" = tutte insieme. Oppure scegline una sola come risultato principale.
items
Array
expressionnoinputArray di numeri o di oggetti. Vuoto = usa l'input del nodo.
key
Campo numerico (dot-path)
stringno
es. ordine.totale
Se gli elementi sono oggetti, il campo da aggregare. Vuoto = gli elementi sono già numeri.

⬆️ Node output

Fields available to downstream nodes via $node.<alias>.json.<field>:

  • default

💡 Configuration example

JSON snippet of the node as it appears in the workflow. Values are derived fromdefaultValue and from required parameters.

{
  "id": "node-action_aggregate-1",
  "defId": "action_aggregate",
  "label": "Statistics",
  "config": {
    "operation": "all",
    "items": "input"
  }
}

🔗 Related nodes in the same category

Ready to use Statistics?

Available now on all FlowForge plans. Try it free without a credit card.

Start freeBrowse all nodes