Skip to content

Glossary

Data Engineering

Data Aggregation

Data aggregation is the process of combining many detailed records into summary values, such as sums, counts, averages or percentiles, grouped by dimensions like day, region or product, so patterns can be read quickly.

Updated · By the VIZIO AI team

What is data aggregation?

Aggregation trades detail for readability: 2 million order lines become one revenue number per store per day. Every aggregate has three parts: a measure (order value), a function (SUM, COUNT, AVG, MAX, percentile) and a grouping (store, day).

It happens at several layers. Pipelines often pre-compute rollups in the warehouse; BI tools aggregate again at query time; and APIs from ad platforms may already return pre-aggregated daily totals. Knowing which layer did the summarizing matters when two numbers disagree.

A quick example of why: if Google Ads reports daily clicks in the account's time zone and your warehouse rolls up in UTC, the same "Tuesday" contains different hours in each, and the totals will never match exactly.

How do you aggregate data correctly?

Correct aggregation starts with knowing the grain of the source table: what one row represents. Most errors come from summing at the wrong grain.

  • Additive measures (revenue, units) can be summed across any dimension.

  • Semi-additive measures (account balance, inventory on hand) can be summed across stores but not across days; take the period-end value instead.

  • Non-additive measures (conversion rate, average order value) must be recomputed from their numerator and denominator, never averaged.

  • Distinct counts (unique customers) cannot be added across days; a customer active Monday and Tuesday counts once for the week.

In SQL this is GROUP BY with the right function; in dbt it is often an incremental model that rolls up daily partitions.

What does data aggregation look like in practice?

A typical case is turning raw event data into a daily summary table that dashboards can read in milliseconds. Consider a subscription meal-kit company with roughly 30,000 orders a week stored as line items in BigQuery.

  1. The data team defines the grain of the new table: one row per day, per delivery region, per plan type.

  2. A scheduled dbt model computes orders, revenue, distinct customers and refunds for each combination.

  3. Conversion and average basket size are stored as numerator and denominator columns so they can be re-divided at any level.

  4. Looker points at the summary table for executive views and at line items only for drill-through.

Say the weekly ops dashboard went from scanning millions of rows to a few thousand; it then loads fast enough to use in the Monday meeting.

The detailed line items are still kept, so when a region's refund count looks odd, an analyst can open the underlying orders in one click.

What are the pitfalls of data aggregation?

Aggregates hide the very outliers and mixes that often explain a change. A stable average order value can mask a shift from many small orders to a few large ones.

  • Simpson's paradox: a trend in every subgroup can reverse when the groups are combined.

  • Averaging averages: the mean of five store conversion rates is not the company conversion rate.

  • Small-cell privacy: aggregates over very few people can re-identify individuals, which matters under GDPR.

Keep the detailed data reachable so analysts can drill down when a summary looks wrong.

How is data aggregation different from data integration?

Integration brings data from different systems together; aggregation summarizes data that is already together. They usually run in sequence: tools like Fivetran or Airbyte handle integration, then SQL or dbt models aggregate.

Aggregation engines worth knowing: warehouse-native GROUP BY in Snowflake or BigQuery, materialized views, Tableau Hyper extracts with pre-aggregation, Power BI aggregation tables, and OLAP engines such as ClickHouse or Apache Druid built for fast rollups. The term is also used in finance for "account aggregation" services like Plaid, which is a different meaning: collecting data, not summarizing it.

Data aggregation vs data integration

Data aggregation

Data integration

Purpose

Summarize detail into totals and rates

Combine data from separate systems

Output

Fewer, wider summary rows

Unified, matched records

Typical tools

SQL GROUP BY, dbt, materialized views

Fivetran, Airbyte, APIs, ETL jobs

Main risk

Wrong grain or averaged ratios

Mismatched keys and duplicates

Order in pipeline

Usually after integration

Usually first

How does VIZIO AI approach data aggregation?

VIZIO AI designs aggregation layers around how fast a dashboard must answer and at what grain people actually decide. For a UK cybersecurity research organization, Growth Studio built a real-time ransomware monitoring dashboard fed by a Kafka streaming pipeline, using Hyper partitioning, indexed views and pre-aggregations so 500,000+ records rendered in under one second.

For a US professional services firm, the same studio built a Looker Studio framework that automatically connects and aggregates Google Ads, Meta and Google Analytics data, reducing manual reporting time by 25%.

Where to start: write down the grain of your three most-used tables, then check whether any dashboard averages a ratio.

logo of Facebook
logo of X
logo of LinkedIn
logo of Reddit
logo of Telegram

Think AI-first.
Move future-fast.

Let’s build what’s next! From product ideas and intelligent workflows to data-driven systems and scalable growth operations.

Book a Strategy Call