Exploration · 08
Semantic engine
On the left, the inside of a semantic model: tables, relationships with their cardinality and filter direction, hierarchies, and measures that lean on one another. On the right, the engine that answers it. Pick a visual and a storage mode, run the query and watch the formula engine plan, the storage engine scan, columns page into memory and the timings add up.
Two engines, one query
Every DAX query is answered by two engines working as a pair. The formula engine is single-threaded and clever: it understands filter context, time intelligence and iterators, and it does arithmetic on small intermediate results. The storage engine is multi-threaded and simple: it scans compressed columns, applies filters and joins along relationships, and returns grouped aggregates called datacaches. Fast models push as much work as possible into the storage engine, in as few scans as possible. Measures that force the formula engine to iterate row by row, like the semi-additive On Hand Units here, are where time goes.
Where the columns come from
What the numbers are
The timings are illustrative, not measured: they come from a simple cost model (scan size, joins, paging and round trips) so the shape is right even if the milliseconds are not yours. To see real ones, run the same visual's query in DAX Studio with Server Timings on, or use Performance Analyzer in Power BI Desktop. The structure is real: the measures, relationships and hierarchies all come from the shared sample model, and the query plan is derived from them.