Sub topic 3
Framing, Column Loading, and DirectQuery Fallback
Assume you know Power BI relationships, star schemas, basic DAX, and the difference between fact and dimension tables. This chapter focuses on how Direct Lake and composite models behave after you choose a storage mode.
Direct Lake internals
Direct Lake reads Delta tables in OneLake. Framing is the metadata step that discovers the table schema, files, and statistics needed by the semantic model. Direct Lake does not first copy the whole table into the model.
When a visual needs a column, the engine loads that column into its in-memory structures. Later queries can reuse it. This column-at-a-time behavior can reduce refresh work, but the first query may include loading latency.
Some queries cannot run entirely through Direct Lake. Unsupported features, data types, security conditions, or capacity limits can cause fallback to DirectQuery. The query then runs through the SQL endpoint. Check the model and workload rather than assuming every Direct Lake query has identical behavior.
Composite models, Dual tables, and aggregations
A composite model contains tables with different storage modes. A dimension marked Dual can behave as Import for fast local joins or as DirectQuery when a query needs the detail source. Keep shared dimensions Dual when combining imported aggregations with DirectQuery facts.
An aggregation table stores summarized data, such as sales by date and product. Marking it Import or Direct Lake can answer common grouped queries without scanning a large DirectQuery fact table. Queries that need detail, unsupported calculations, or unmatched groupings still use the DirectQuery table.
Security and credentials
| Mode | Freshness and source access |
|---|---|
| Import | Data is protected by model roles after refresh; refresh credentials access the source. |
| DirectQuery | Model queries use configured source credentials or a gateway; source permissions and model roles both matter. |
| Direct Lake | OneLake and semantic-model permissions apply; fallback can add SQL endpoint security and credential requirements. |
Test row-level security with each role and with fallback enabled. Do not assume that a role tested against Import behaves the same way against a source query.
> callout warning > A fast Direct Lake result does not prove that every visual avoids DirectQuery fallback.
Choosing and checking the mode
Choose Import for predictable speed and manageable refresh windows. Choose DirectQuery when freshness or source governance outweighs latency and modeling limits. Choose Direct Lake when Fabric Delta data is central and capacity supports it. Use a composite model when only some workloads need live detail.
In Power BI Performance Analyzer, record a slow visual, inspect its DAX query and duration, then compare storage-engine time with direct-query time. DAX Studio can help inspect the generated query and server timings.
Exercise
A DirectQuery sales table is slow for monthly totals. What design should you test first?
Show answer
Add a correctly mapped Import or Direct Lake aggregation table for monthly totals, keep shared dimensions Dual, and verify with Performance Analyzer that the visual hits the aggregation.