Sub topic 14
Choosing a storage mode: a decision guide
This chapter assumes you can build a star schema in Power BI Desktop and write basic DAX measures. It also assumes you have read the earlier chapters on Import, DirectQuery, Direct Lake, composite models, and row-level security (RLS). Here you will turn that knowledge into a repeatable way to pick a storage mode for each table in a semantic model.
Start with the question, not the mode
Storage mode is set per table, so "which mode should this model use?" is really several smaller questions. Ask them in this order:
- Where does the data live, and can the mode reach it?
- How fresh must the data be when a user opens the report?
- How large is the data compared with the memory available?
- Can the source handle the query load that report users will generate?
- Do you need DAX or Power Query features that a mode restricts?
- How must security be enforced?
Each answer removes some options. The sections below walk through the criteria, then show a decision flow and some worked scenarios.
Compare the modes on the dimensions that matter
The table summarizes the behavior covered in earlier chapters.
| Dimension | Import | DirectQuery | Direct Lake |
|---|---|---|---|
| Where data is read at query time | VertiPaq memory (a copy) | The source database, per query | VertiPaq memory, loaded from Delta tables in OneLake |
| Freshness | As of the last refresh | Near real time | As of the last framing (refresh) of the model |
| Query speed | Fastest, steady | Depends on source and network | Fast once columns are loaded; slower on a cold first query |
| Refresh cost | Full or incremental copy, uses capacity | None for data (only metadata) | Framing is cheap; no copy step |
| Source load | Only during refresh | Every visual query hits the source | Reads Delta files, not a database server |
| DAX and Power Query limits | Fewest | Some functions and transformations are restricted | Tables must exist as Delta tables; no Power Query transformations on the model tables |
| Data location requirement | Any supported connector | Supported relational or other DirectQuery sources | Delta tables in OneLake (Fabric) |
Two points in the table deserve emphasis. Import is the only mode where speed does not depend on anything outside the model once the refresh has finished. DirectQuery is the only mode where "fresh" means "current", because every query goes back to the source.
Weigh each criterion
Freshness
Ask what a stale number costs. A monthly finance pack tolerates a nightly refresh. An operations screen that tracks orders in progress may not tolerate even a 15-minute delay.
- If hours of delay are acceptable, Import is the default choice.
- If minutes matter and the data is in a relational source that can serve queries, DirectQuery fits.
- If the data is already in a Fabric lakehouse or warehouse as Delta tables, Direct Lake gives freshness close to the pipeline that writes the tables, because reframing only picks up new Delta file versions.
Freshness in Direct Lake still depends on framing. Data written to the lakehouse after the last framing is not visible until the model reframes, either automatically or through a refresh you trigger.
Data volume and capacity
Import copies data into memory, so the compressed model must fit within the limits of your capacity or license. Compression often shrinks data many times over, but a very large fact table can still exceed the limit. Incremental refresh reduces refresh time, but it does not reduce the memory the final model needs.
DirectQuery has no model size limit for the data itself, since the data stays at the source. Direct Lake keeps the data in OneLake and loads only the columns that queries touch, so it handles large tables without a copy. Direct Lake still has guardrails, such as the maximum rows per table and the maximum model size, which depend on the capacity SKU. If a table exceeds a guardrail, queries fall back to DirectQuery (where fallback is enabled) or fail.
Source load
Every report page in DirectQuery sends several queries, and each one reaches the source. Many users opening a busy report at 9 a.m. can become a load test for a transactional database. Check these before choosing DirectQuery:
- Can the source use indexes or columnstore structures that suit grouped aggregation?
- Is the source shared with operational workloads?
- Does the gateway or network add latency?
Import moves the load to refresh time, which you can schedule. Direct Lake reads files and puts no query load on a database.
Modeling and DAX needs
DirectQuery translates DAX into source queries, so some features are restricted or slow, and some Power Query transformations cannot be applied. If your model depends on complex calculated columns, heavy time-intelligence logic, or many-to-many patterns, test them in DirectQuery before committing. Import places the fewest restrictions on the model.
Direct Lake needs the shaping to happen before the data reaches the Delta table, in a pipeline, notebook, or dataflow. Calculated columns and calculated tables over Direct Lake tables are limited, so push that logic upstream.
Security
Row-level security defined in the semantic model works in all three modes, but the source credentials behave differently.
- In Import, the refresh credential reads all the data. Users never touch the source, so RLS in the model is the only protection.
- In DirectQuery, you choose between a fixed credential and single sign-on (SSO), where each user's identity reaches the source. SSO lets the source enforce its own security, but it makes connection pooling less effective and can slow queries.
- In Direct Lake, the default identity setting uses single sign-on to OneLake, which respects the user's permissions on the data. Using a fixed identity instead means model RLS is the main control. Source-level security such as SQL endpoint row-level security can force queries to fall back to DirectQuery.
If the source must be the single place where access rules live, that pushes toward DirectQuery with SSO or Direct Lake with SSO.
A decision flow
Treat the flow as a first draft. The real decision also depends on the license, existing skills, and how much the team wants to maintain.
Worked scenarios
Scenario 1: Departmental sales report from SQL Server
Data volume is 40 million rows, nightly loads are acceptable, and the source is a shared operational database. Choose Import. Add incremental refresh on OrderDate so only recent partitions reload. The shared source sees load only during the refresh window.
Scenario 2: Live order monitoring
Operations staff need to see orders within a minute of entry. The source is a warehouse built for analytical queries. Choose DirectQuery. Keep the model a star schema, avoid expensive calculated columns, and use aggregation tables if the page is slow.
Scenario 3: Enterprise lakehouse
A Fabric lakehouse holds 2 billion fact rows in Delta tables. The pipeline already updates them every 15 minutes. Choose Direct Lake. Verify that the table sizes fit the guardrails of your capacity, and watch for fallback.
Scenario 4: Large fact with small dimensions, needing speed
A 5-billion-row DirectQuery fact table is slow, but users mostly view totals by month and region. Choose a composite model: keep the fact table in DirectQuery, add an Import aggregation table at month and region grain, and set the dimension tables to Dual so that they join to both. Queries that the aggregation can answer run in memory. Detailed queries still reach the source.
Verify the choice with a query
A decision is only a hypothesis until you measure it. Use a measure like this one in each candidate model:
Total Sales = SUMX ( Sales, Sales[Quantity] * Sales[UnitPrice] )Then run the query a report visual would send. Paste it into DAX Studio or the Performance Analyzer query view and compare timings across modes:
EVALUATE
SUMMARIZECOLUMNS (
'Date'[Year],
"Total Sales", [Total Sales]
)
ORDER BY 'Date'[Year]Run each query twice. The first run on a Direct Lake model includes column loading, and the second shows the warm result. In DirectQuery, check whether the time is spent in the DAX engine or in the source query. The next chapter covers Performance Analyzer in detail.
Common mistakes
- Choosing DirectQuery only for "fresh" data. Many users accept hourly refresh. Real-time requirements are rarer than they first appear, and DirectQuery costs speed.
- Ignoring fallback in Direct Lake. A model that silently falls back to DirectQuery is slower and loads the SQL endpoint. Check the fallback behavior setting and test with realistic data volumes.
- Using one mode for the whole model by habit. Storage mode is per table. A composite model with Dual dimensions often fits better.
- Forgetting that incremental refresh needs folding. If the
RangeStartandRangeEndfilter does not fold to the source, every refresh reads the whole table. - Skipping the security review. Switching modes can change whose identity the source sees.
Exercises
Exercise
A retail team has a 300-million-row fact table in a Fabric lakehouse as Delta tables, updated hourly by a pipeline. Users need data no older than one hour, and the capacity's Direct Lake guardrails are not exceeded. Which mode do you pick, and what one thing do you verify after deployment?
Show answer
Pick Direct Lake. The data is already in Delta tables in OneLake, hourly freshness matches the pipeline schedule (reframing picks up new versions), and no copy step is needed. After deployment, verify that queries do not fall back to DirectQuery, for example by testing with realistic volumes and checking in Performance Analyzer or DAX Studio that the queries run in the VertiPaq engine.
Exercise
Your DirectQuery model over a 5-billion-row fact table is slow on a summary page that shows sales by month and region. Detail pages are acceptable. What change would you make, and which storage mode should the Date and Region dimension tables use?
Show answer
Build a composite model. Add an aggregation table at month and region grain in Import mode, mapped to the DirectQuery fact table. Set the Date and Region dimensions to Dual so they can join to both the Import aggregation and the DirectQuery fact table without forcing a slow cross-source join. Summary visuals then run in memory, and detail visuals still query the source.