Composite models in Power BI, explained

What a composite model is in Power BI, mixing Import and DirectQuery or extending a published semantic model, and what limited relationships mean for it.

Short answer: a composite model is a semantic model with more than one source group: tables in Import mode next to tables in DirectQuery, or a published semantic model you connect to with DirectQuery and extend with your own tables. It lets a model keep history imported and today live, or lets a team add its budget to the company's sales model without copying it.

The first kind trades speed for freshness table by table. The second kind lets one shared model serve many teams, each adding what only it needs.

What are the two kinds?

Import and DirectQuery
  • big history imported, a live DirectQuery table for today
  • dimensions in Dual
Extend a published modelDirectQuery to the company's semantic model, plus your own imported table
Composite models, two common uses

What does an extended model look like?

Your modelone report, one semantic model
Company sales modelDirectQuery to the published model: facts, dimensions, measures
Budget tableyour own Excel budget, imported
A team's report on the company model

You connect to the published model, choose Make changes to this model, and add the budget table with a relationship to the shared Date dimension. Your measures can then use both:

Revenue vs budget = DIVIDE ( [Revenue] - SUM ( Budget[Amount] ), SUM ( Budget[Amount] ) )

The company model stays as it is; your additions live only in your model.

What are limited relationships?

A relationship between tables in different source groups is a limited relationship. Power BI cannot join the two sides in one engine, so it fetches from each and combines them, and a few things behave differently: the "blank" row for missing keys is not added, and totals can be slower. Relationships inside one source group stay regular.

Relationship betweenKind
two Import tablesregular
two tables in one DirectQuery sourceregular
an Import table and a DirectQuery tablelimited
your table and a table in the published modellimited
Where a relationship sits, and what it is

What goes wrong?

  • Slicers that query the source. An Import dimension filtering a DirectQuery fact sends its values with every query. Set such dimensions to Dual.
  • Long chains. A model on a model on a model works, up to a chain length limit, but every hop adds time. Keep chains short.
  • Security on the source. Row-level security in the published model still applies to you; your own tables are not covered by it.

Where can you check this?

Where do you start?

Power BI storage modes explains Import, DirectQuery and Dual one at a time, and Every KPI once is why a shared model is worth extending instead of copying.

Keep reading

More from the blog.

Every post

Next

Building this? Say hello.

A question about this post, a pattern you would build differently, or the next thing you want written out: Behnia reads every message.