Menu
Aggregate Data
Filter, group and total CSV, JSON or XML data: sum, average, min, max, count and more, by one or several fields
Use it in a workflow
- Add a step and choose the Data Converter connector.
- Pick the Aggregate Data action (under helper).
- Fill in the fields below, then reference the result from later steps as
{{aggregateData.response.data}}.
Fields
Examples
Sales by region
Total and average paid order value per region and category
{
"content": "{{downloadFile.response.data.content}}",
"inputEncoding": "base64",
"filters": [
{
"field": "status",
"operator": "eq",
"value": "paid"
}
],
"groupBy": "region,category",
"aggregations": [
{
"field": "amount",
"op": "sum",
"as": "totalSales"
},
{
"field": "amount",
"op": "avg",
"as": "averageOrder"
},
{
"op": "count",
"as": "orders"
}
],
"sortBy": "totalSales",
"sortOrder": "desc"
}
Rows grouped by purchase order
One group per purchase order, each with its rows, to process an order's lines together
{
"content": "{{downloadFile.response.data.content}}",
"inputEncoding": "base64",
"groupBy": "poNumber"
}
Need more? See the Data Converter guide for connection setup and behaviour shared by every action.
Was this page helpful?