Import and DirectQuery
Choose where a table is evaluated
Import copies data into the semantic model at refresh; DirectQuery requests source data during query evaluation using a supported connector. Neither is a universal winner. On the fixed Chapter 35 fixture, both models should return 360 revenue before a source change. Use the same relationships, measure, snapshot, identity and filters when comparing them.
Storage property versus freshness contract
In Model view, inspect each table’s Storage mode under Advanced properties. Create two independent models against the same approved read-only SQL Server database. In classic Desktop, conversion from DirectQuery to Import or Dual is generally not reversible in place; keep separate copies. An imported table uses its processed snapshot; a DirectQuery request may be served by caches or affected by source replication, gateway delays and visual refresh behavior. Record source commit time, visible report time and refresh completion separately. Define freshness and latency targets with the business owner before choosing a mode.
Example 1 — establish parity before changing the source
Load Product (unique ProductKey, Category) and Sales (unique TraceId, SaleDate, ProductKey, Quantity, UnitPrice) from the fixture described in the lab. Relate Product 1:* Sales with one-way filtering. Use this same measure in both models:
Revenue = SUMX(Sales, Sales[Quantity] * Sales[UnitPrice])Expected baseline: A = 60, B = 120, C = 180, total = 360. Selecting A and B gives 180. Blank/no matching category is not zero. Check all cases using parity.dax. The measure is a query-time calculation, not a calculated column. The SQLite verifier checks business arithmetic only.
Example 2 — source change and refresh
A new B sale with quantity 1 and price 20 is committed in the synthetic second snapshot. An unchanged Import snapshot still totals 360. A fresh source evaluation against snapshot 2 totals 380, with B = 140. After successfully processing the same snapshot, Import should also total 380. This predicts snapshot results, not guaranteed DirectQuery visual freshness. On an approved test source, record observed results after visual refresh and separately after model refresh; never simulate freshness by claiming actual cache behavior from SQLite.
Trade-offs and failure modes
Import usually minimizes interactive source queries but requires model capacity, processing time, a refresh plan and explicit semantic-model permissions. DirectQuery shifts work toward source and gateway resources; concurrency, indexes, query restrictions, security and network latency matter. Do not equate no imported fact rows with no cache or no model metadata. Source RLS under a shared credential does not automatically implement per-viewer security. Verify effective connection identity, model roles and negative access tests. Aggregations may later help supported DirectQuery designs; do not assume hits or speedups.
Practice — make a measurable choice
A dashboard tolerates daily updates and has a slow shared database. Recommend an initial mode, record the required data age and describe what to test. Next, predict the B and grand-total results before and after the synthetic source change. Explain why pressing a report refresh control is not equivalent to processing an Import table. See the lab worksheet and admin-only solution.
Documentation reviewed 2026-11-29 (installed build unverified): desktop-storage-mode, desktop-directquery-about, service-live-connect-dq-datasets. Native execution: NOT RUN.