Storage and formula engine
Follow a DAX query through the engines
A DAX query is interpreted by the formula engine (FE), which handles evaluation semantics and coordinates requests. The storage engine (SE) retrieves and aggregates data where possible. With Import, the SE reads compressed VertiPaq data; with DirectQuery, retrieval may involve requests to an external source. The division is an execution model, not a fixed mapping of each DAX function to one engine. The optimizer can change requests according to expression, data type, filter context and build.
Separate source, refresh and report execution
During Import refresh, Power Query may delegate transformations to a source, and the model processes imported columns and calculated columns. A report query usually evaluates imported data without calling the original source. DirectQuery differs: source execution, network latency and connector translation may participate in report queries. A regular Import relationship also has supporting structures, so its cost is not captured just by the key column size. Formula-engine intermediate tables and cache usage may consume additional memory during queries; model storage size is not peak query memory.
Example 1 — equivalent measures, different opportunities
In baseline Sales, create the calculated column LineAmount = Sales[Quantity] * Sales[UnitPrice] and measure Revenue = SUM(Sales[LineAmount]). In lean Sales, create only Revenue = SUMX(Sales, Sales[Quantity] * Sales[UnitPrice]). Each evaluates to 360 for the fixture; filtering ProductKey=2 gives 120. The first stores the multiplication at processing time; the second expresses row multiplication at query time and may be optimized into SE work. Do not claim SUMX is always FE or that SUM is always faster. Compare trace results, not function names.
Example 2 — read storage metadata without guessing
With a supported local Import model and write permission, run separately in DAX Query View or an approved DAX client:
EVALUATE INFO.STORAGETABLECOLUMNS()EVALUATE INFO.STORAGETABLECOLUMNSEGMENTS()Expected: metadata rows, not business revenue. Inspect returned names and storage identifiers; match them to the intended model before comparing. The exact rows and bytes depend on build and processing state, so no native results are supplied. These INFO functions are not supported when live connected to a semantic model in Desktop. DAX Studio View Metrics is an alternative; Server Timings traces show actual storage-engine requests such as xmSQL, which is not an executable SQL statement for the source.
Common mistakes
A CSV source scan during refresh does not prove a report query used DirectQuery. A large dictionary does not establish that the formula engine was slow. A small model is not automatically fast if a measure materializes large intermediate tables or a visual requests too many groups. Capture actual native metadata and trace evidence; do not compare FE and SE numbers across inconsistent cache states. Timing methodology follows in Chapter 34. Never clear shared caches or expose trace contents from real customer models.
Practice — classify evidence
Draw the paths from source to Power Query to Import model, and from DAX query to FE to SE. Add a separate DirectQuery route to the source. Explain which artifact can confirm the column memory footprint versus the actual SE request. Use the revenue measures in the two lab models and identify what would have to be measured to compare them. Sources: https://www.sqlbi.com/articles/formula-engine-and-storage-engine-in-dax/ ; https://daxstudio.org/docs/features/traces/server-timings-trace/ ; https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-relationships-understand ; https://learn.microsoft.com/en-us/dax/info-storagetablecolumns-function-dax