Aggregate
The aggregate stage calculates aggregation functions (e.g., mean, percent, freq, and more) on the input records and returns a consolidated set of records (in total and/or by comparison groups).
- Jump to Examples below
Stage Editor UI
Stage as JSON
Example:
{
// note: there must exist one (and only one) measures axis, located in either rows or cols
cols: [] // array of axes
rows: [ // array of axes
{
"name": "m",
"type": "measures",
"items": [
{
"syntax": "pct(aware_01==1)",
"label": "Aware of Brand A"
},
{
"syntax": "pct(aware_02==1)",
"label": "Aware of Brand B"
}
]
}
]
}
Measures Axis
There is only one Measures Axis and it must have at least one Measure defined. In the stage UI, click the Axis button to edit measures.
Learn about the Measures Axis.
Groups Axes
The Groups Axes are optional. Measures are calculated for each group (data cut) in a Groups Axis. If multiple Groups Axes exist, a nested expansion of all groups axes is output.
Click here to learn about the Groups Axis.
Layout
Layout determines where each Axis is returned: as rows or columns, and in what order.
In the UI, you may click and drag an axis to re-order within rows or columns container, or move it into the opposite container.
Click here to learn about Layout (todo).
Examples:
Click section to expand.