5 min readUpdated Mar 2, 2026

AggregationNodeEditor Documentation

Overview

The AggregationNodeEditor is a dedicated editor for managing the aggregation workflow within the Vantage analytics platform. It offers an intuitive interface for configuring data aggregation operations based on the defined columns of upstream data. Users can specify grouping criteria and select various aggregation functions to transform their datasets, leading to enhanced analytical insights.

Purpose

The primary purpose of the AggregationNodeEditor is to facilitate the configuration of aggregation operations directly within the data workflow. This component allows users to group data, specify different aggregation functions (like sum, average), and set pivot configurations, making data manipulation and analysis more streamlined and accessible.

Settings

1. Group By

2. Aggregations

3. Pivot By

Aggregation Functions

The editor supports various aggregation functions defined in the AGG_FUNCTIONS array:

FunctionNeeds ColumnNumericDescription
CountNoNoReturns the number of rows
Count DistinctYesNoReturns the count of unique values
SumYesYesReturns the total of numeric values
AverageYesYesReturns the mean of numeric values
MinYesYesReturns the smallest value
MaxYesYesReturns the largest value
MedianYesYesReturns the median value
FirstYesNoReturns the first value
LastYesNoReturns the last value

Date Periods

The DATE_PERIODS array allows users to specify how dates should be grouped:

ValueLabel
''Exact
'day'Day
'week'Week
'month'Month
'year'Year

How It Works

The AggregationNodeEditor leverages state management hooks to keep track of the selected node's configuration, using upstream column detection to suggest available columns for grouping and aggregation. When a user modifies the settings, the changes are handled through updateField, which updates the main workflow state with new configurations.

The editor continuously recalculates the summary text to provide contextual information about the current configuration, combining grouped columns, selected aggregations, and pivot configurations into a cohesive summary.

Expected Data

The AggregationNodeEditor expects an object encapsulating:

Integrations & Billing Impact

Use Cases & Examples

Use Cases

  1. Sales Performance Analysis: A retail company wants to understand the monthly sales performance grouped by different product categories.
  2. Customer Segmentation: A marketing team needs to segment customer data based on demographics while aggregating purchase frequencies to refine targeting strategies.
  3. Financial Reporting: A finance department requires quarterly revenue and expenditure reports aggregated by departments within the organization.

Example Configuration

Use Case: Sales Performance Analysis

To track monthly sales across various product categories, the user may configure the AggregationNodeEditor as follows:

json
{
  "groupBy": [
    { "column": "product_category", "datePeriod": "month" }
  ],
  "aggregations": [
    { "column": "sales_amount", "function": "sum", "alias": "total_sales" },
    { "column": "transactions", "function": "count", "alias": "total_transactions" }
  ],
  "pivotBy": null
}

With this configuration: