/semantic-models:dax-optimisationfrom semantic-models
Optimizes DAX queries and semantic models with a tiered performance framework. Covers engine internals, DAX patterns, model tuning, and Direct Lake. Includes trace capture and benchmarking guidance.
Ships in semantic-models. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Skills and references for writing, debugging, and optimizing DAX in semantic models.
For systematic DAX query performance optimization, read the workflow reference first:
references/dax-performance-optimization.md — Tiered framework (4 tiers), phased workflow, decision guide, and error handling.
Detailed reference files (progressive disclosure — consult as directed by the workflow):
references/engine-internals.md — FE/SE architecture, xmSQL, compression/segments, SE fusion, trace diagnosticsreferences/dax-patterns.md — Tier 1 DAX patterns (DAX001–DAX021) + Tier 2 query structure (QRY001–QRY004)references/model-optimization.md — Tier 3 model patterns (MDL001–MDL009) + Tier 4 Direct Lake (DL001–DL002)Trace capture and performance profiling:
te query (see the te-cli skill) first; as an alternative, the connect-pbid skill covers FE/SE timing (performance-profiling.md) and intermediate result inspection (evaluateandlog-debugging.md).te query (-s <workspace> -d <model>) against the workspace XMLA endpoint; see the te-cli skill (tabular-editor plugin).Measure before rewriting. On a 2026 Desktop engine, every classic Tier 1 rewrite on one large P&L
model was measured as performance-neutral although textbook anti-patterns were present: whole-table
FILTER arguments converted to KEEPFILTERS column predicates (187 sites), repeated sub-expressions
cached in iterators, multi-scan base measures collapsed, iterator domains restricted. Every rewrite
was result-identical and inside the timing noise; the engine already deduplicates repeated
sub-expressions and handles small dimension filters cheaply. So:
DEFINE MEASURE (A against B in one query file, the model untouched), clear the cache,
trace cold and warm.pbi-desktop:connect-pbid
references/vertipaq-stats.md). Auto date/time tables are the usual big win: one sentinel date
such as 9999-12-31 in a date column builds a calendar to the year 9999. Deleting two such tables,
two dead fact columns and a dead date column took one model from 967 MB to 348 MB.custom-visuals:performant-matrix.Every capture route above times the DAX query. None of them evaluate a dynamic format string, which a rendered visual pays once per cell, so a visual can cost materially more than the query the harness measures. See references/dax-performance-optimization.md, Trace Capture Methods.
dax-standard references/udf-authoring.md: UDF signatures, the parameter type system, VAL versus EXPR evaluation, type checks, patterns and testingdax-standard — Authoring measures in the house style; the default for any new measure (this skill is for tuning existing ones)semantic-model — Model design, build, and auditing including DAX anti-patterns and best practicesconnect-pbid (pbi-desktop plugin) — Trace capture, performance profiling, EVALUATEANDLOG debugginglineage-analysis — Impact analysis before model changesWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
dax, power-bi, semantic-model, query-performance, tabular-editor
npx claudepluginhub insightfulanalytics/pbi_agentic_dev --plugin semantic-models9 skills in this plugin
/date-tableDrop a complete date dimension into a PBIP semantic model, an extended DimDate (58 columns of calendar, ISO week, fiscal and to-date flags) from a bundled Power Query function, plus the "Dates Selected" title measure. Invoke when the user asks to "add a date table", "add a calendar table", "create DimDate", "mark as date table", "add a fiscal calendar" or wants a title showing the selected period./dax-standardHouse style for writing DAX measures. Build the rows a calculation needs into a table VAR, then aggregate, so each step can be debugged. Covers measure formatting (dynamic format strings, UDFs), the time-intelligence exception and recipes. Use to write, rewrite, review or format a measure, or for a DAX recipe. For a measurably slow measure, use `semantic-models:dax-optimisation`./lineage-analysisOther plugins' skills for the same job