Gyromitra Inc.
← Back to Blog

Study Guide

Aggregations and Composite Models: Scaling Power BI Past Import's Limits

By Dr. Rosario Feghali · November 20, 2026 · 8 min read

I've written before about choosing between Import and DirectQuery, and about composite models that mix storage modes table by table. Aggregations are the feature that sits on top of both of those decisions, and it's the one candidates reach PL-300 having heard of but rarely having built themselves — because most training datasets are small enough that you never need it. The moment a fact table crosses into the hundreds of millions of rows, though, aggregations stop being an exam curiosity and become the difference between a report that loads in two seconds and one that times out.

The problem aggregations solve

Say you have a sales fact table with three billion row-level transactions going back ten years. Import that into VertiPaq and even with excellent compression you're looking at a model too large for most capacities, with a refresh that takes hours. Put it in pure DirectQuery and every visual sends a live query to the source, and most dashboards — a monthly trend by region, a year-over-year by product category — only need numbers summarized to day, region, and product, not the three billion individual rows.

An aggregation table is a smaller, pre-summarized version of that fact table, grouped to whatever grain your common reports actually need — say, by date, region, and product, instead of by transaction. You import that small table, while the full-grain fact table stays in DirectQuery as the detail source. Power BI then automatically redirects a query to the small imported table whenever the query's grouping matches what the aggregation can answer, and falls through to the DirectQuery detail table only when someone needs a grain the aggregation doesn't cover — a specific transaction ID, for instance.

How the two tables relate

You build this through Manage Aggregations, available on any table in your model. For each column in the aggregation table, you map it to a column in the detail table and choose a summarization: GroupBy, Sum, Count, Min, Max, or Count Distinct. A typical setup looks like this:

Aggregation columnSummarizationDetail table column
OrderDateGroupByOrderDate
RegionKeyGroupByRegionKey
ProductKeyGroupByProductKey
SalesAmountSumSalesAmount
OrderCountCountOrderID

The aggregation table is usually set to Import (fast, cached, compressed by VertiPaq) while the detail table stays DirectQuery. That combination — an Import aggregation sitting in front of a DirectQuery detail table — is itself a composite model; aggregations are really a specific, structured application of the same storage-mode-mixing I covered in the DirectQuery-vs-Import piece, with Power BI handling the query redirection for you instead of you building separate reports against each table.

Hiding the aggregation table

Once it's built, the aggregation table should almost always be hidden from the report view (Model view, right-click the table, Hide in report view). Report authors and end users build visuals against the detail table as if the aggregation didn't exist — they never pick "which table" explicitly. Power BI's query engine inspects each visual's query at run time, decides whether the aggregation table can satisfy it, and transparently substitutes it in when it can. This is the behavior PL-300 cares about: the aggregation is an invisible performance layer, not an alternate dataset users choose between.

Why this isn't just "make a smaller DirectQuery query"

It's worth being precise about what's actually happening, because it's easy to undersell. Without an aggregation table, a DirectQuery visual grouped by month and region still sends a GROUP BY query to the source for every single interaction — every slicer click re-triggers a round trip to the database engine and whatever latency and load that implies. With the aggregation in place, that same visual is answered entirely from an in-memory, VertiPaq-compressed table that behaves exactly like an Import table: no round trip, no source load, response in milliseconds. You get DirectQuery's benefit — a detail table that's never fully duplicated into the model, keeping size manageable and freshness close to the source — without paying its query-latency cost on the queries that matter most, which in practice are the vast majority of them.

Where it breaks down

Aggregations only help when real usage clusters around a predictable set of grains. If users constantly filter or drill to a column that isn't in the aggregation table — say, a specific SKU or customer ID — every one of those queries falls through to DirectQuery anyway, and you've added model complexity for cases that still pay full latency. Before building an aggregation table, I ask clients to pull actual usage logs (Power BI's own usage metrics, or query logs from the source) and check what grain reports are genuinely running at. Guessing the right aggregation grain from intuition alone is a common way to build a table that never gets hit.

It's also worth knowing you can stack multiple aggregation tables at different grains against the same detail table — a daily aggregation and a monthly aggregation, for instance — and Power BI will pick the most granular one that still satisfies the query. That's rarely needed outside genuinely large enterprise models, but it's good to know the feature supports it rather than assuming one aggregation table is a hard ceiling.

Where this shows up on the exam

Aggregations sit in PL-300's "Optimize model performance" domain, and the scenario framing is usually some version of: a DirectQuery or very large Import model is slow, and you're asked to pick the right fix. The signals that point to aggregations specifically, rather than a different optimization:

  • The fact table is large enough that full Import isn't realistic, but reports mostly run at a coarser grain than the raw data.
  • The question mentions a detail table staying in DirectQuery for freshness or size reasons, with a performance complaint about common, summarized visuals.
  • You're asked how to speed up DirectQuery without fully importing the source — aggregations are the mechanism, composite model is the resulting architecture.

Don't confuse this with simply switching a whole table's storage mode (that's the DirectQuery/Import/Dual decision) or with calculation groups (that reduces measure duplication, not query volume against a detail table). Aggregations are specifically about putting a smaller, imported summary in front of a larger, un-imported detail source.

Try it yourself

If you've got a Power BI Desktop file with a reasonably large fact table, pick a column you rarely slice by at its finest grain — order date down to the second, say — and build a GroupBy aggregation summarized to the day. Set the aggregation table to Import, leave the detail table as is, hide the aggregation table, then open Performance Analyzer and compare the query time on a day-level visual before and after. You won't need three billion rows to see the redirection happen — Power BI shows you in the DAX query details whether a visual's query resolved against the aggregation or fell through to the detail table, and watching that switch happen in your own file is what makes the mechanism concrete.

Want performance scenarios like this worked through live?

Gyromitra's PL-300 membership pairs the full self-paced course with a live weekly Q&A with a Microsoft Certified Trainer — bring your own modeling questions and we'll work through them together. Join anytime, no cohort to wait for.