Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Optimizes slow DAX measures and queries in semantic models, covering anti-patterns, server timings, and model-level tuning.
45% 95%+50 ptsof test cases passed
Passed 21 of 22 test cases with the skill, and 10 of 22 without it.
This test ran on v1. v3 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Not used yet
How the DAX engine works: Formula Engine (FE) vs. Storage Engine (SE) architecture, xmSQL query language, compression and segments, SE query fusion, and trace diagnostics.
Related references: DAX and Query Structure Patterns · Model and Direct Lake Optimization
Every DAX query runs through two components: the Formula Engine (FE) and the Storage Engine (SE).
The FE handles all DAX — branching logic, context transitions, complex arithmetic, measure evaluation. It is single-threaded and the bottleneck in most poorly written queries.
The SE reads compressed columnar data from VertiPaq. It is multi-threaded and very fast, but supports only a limited set of operations: the four basic arithmetic operators, GROUP BY, LEFT OUTER JOINs, and basic aggregations (SUM, COUNT, MIN, MAX, DISTINCTCOUNT).
For DirectQuery models, the data source serves as the SE role: the FE generates and pushes down SQL, trading network/source latency for in-memory scan cost.
How they interact:
The core principle of DAX optimization: push as much work as possible into the SE, minimize SE scans, and eliminate callbacks entirely.
xmSQL is the human-readable representation of SE scan activity in trace events — it shows which tables are scanned, which columns are aggregated, which filters apply, and how joins resolve. Syntax resembles SQL with key differences:
Implicit GROUP BY: Every column in the SELECT list is automatically a grouping column — no GROUP BY keyword.
Computed expressions: Row-level calculations use a WITH block with :=, referenced in aggregations via @:
WITH $Expr0 := ( 'Sales'[UnitPrice] * 'Sales'[OrderQuantity] )
SELECT 'Product'[Category], SUM ( @$Expr0 )
FROM Sales
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.