mcpField
D
dax

dax

github.com/data-goblinData & databases1.1k80 installsUpdated today
Repository

About dax

dax is a skill for writing, debugging, and optimizing DAX in semantic models. It provides object-reference conventions and a tiered optimization workflow with references for engine internals, query patterns, and model performance.

Key features

  1. 01Consistent column and measure references
  2. 02Tiered query optimization workflow
  3. 03DAX patterns and engine references
  4. 04Guidance for local and remote profiling

Use cases

  1. 01Write expressions for semantic models
  2. 02Debug slow DAX queries
  3. 03Profile local or remote models
  4. 04Review DAX before model changes

MCP support

The skill notes that Power BI Modeling MCP can be used for traces and queries as an MCP tool.

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/data-goblin/power-bi-agentic-development --skill dax

After installing, type/daxin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
dax-patterns.md
dax-performance-optimization.md
engine-internals.md
model-optimization.md

Details

From the project README

DAX

Skills and references for writing, debugging, and optimizing DAX in semantic models.

Object references

Write column references as 'Table'[Column]: the table name is always present and always in single quotes. Write measure references as [Measure], never prefixed with a table. This applies everywhere DAX or model metadata names an object: measure, calculated column and calculation item expressions, RLS filters, format string expressions, DAX queries (te query, pbir model -q), and descriptions or annotations that mention an object.

Why: a measure belongs to the model rather than to its home table, so moving it between tables must not change any expression that uses it; a bare [Measure] also tells the reader at a glance that it is a measure and not a column. An unqualified column is ambiguous as soon as two tables share a column name, and quoting every table name keeps one consistent form whether or not the name needs quotes.

Optimization

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):

Trace capture and performance profiling:

  • Local models (Power BI Desktop): Use the Tabular Editor CLI 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).
  • Remote models (Fabric Service / XMLA): Run DAX with the Tabular Editor CLI te query (-s <workspace> -d <model>) against the workspace XMLA endpoint; see the te-cli skill (tabular-editor plugin).
  • Power BI Modeling MCP: also available for trace and query if you prefer an MCP tool; reach for it after the options above.

Related Skills

Comments

Markdown supported