Skip to main content

Aggregated data

Aggregated Data Views return a single row of data per grouping with all other fields aggregated. This data shape is used to provide totaling records over a given dataset.

Key concepts

  • Data Shape: The overall structure of the data returned, determined by the View configuration. In this case the Data View is configured with an Aggregated data shape.
  • Aggregation: The function used to accumulate the values of individual records (eg. sum, average, etc).

Sales data example

Let's examine a specific example of a Time Series Data View for sales information.

Name Grouped Aggregation
saleAmount false Sum
saleType true -

Given this configuration, a request to the view may return data similar to the following:

{
  "data": [
    {
      "saleAmount": 199112,
      "saleType": "online"
    },
    {
      "saleAmount": 391918,
      "saleType": "in-store"
    }
  ]
}
Updated on Aug 14, 2025