dax-authoring
Skill by microsoft
Writes and tests DAX queries against Power BI semantic models. Covers DAX syntax rules, query patterns, time intelligence, and an iterative test workflow using the Fabric CLI query command.
Install dax-authoring
Built from the published package, never by AI.
git clone --depth 1 https://github.com/microsoft/ConsumptionCentral-for-Microsoft-Copilot /tmp/ConsumptionCentral-for-Microsoft-Copilot && mkdir -p ~/.claude/skills && cp -r /tmp/ConsumptionCentral-for-Microsoft-Copilot/fabric-app/.agents/skills/dax-authoring ~/.claude/skills/dax-authoringRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/microsoft/ConsumptionCentral-for-Microsoft-Copilot /tmp/ConsumptionCentral-for-Microsoft-Copilot && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/ConsumptionCentral-for-Microsoft-Copilot/fabric-app/.agents/skills/dax-authoring ~/.gemini/antigravity-cli/skills/dax-authoringAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill helps an AI assistant write DAX queries for Power BI semantic models. It gives syntax rules, guardrails for what to use and avoid, and reference guides for query structure, core functions like CALCULATE and SUMMARIZECOLUMNS, BLANK handling, and time intelligence patterns such as year-to-date, year-over-year, and rolling windows.
The assistant is asked to test each generated query with the fabric-app-data query command before using it in app code. It runs the query, checks column names, data types, row counts and values, then fixes and re-tests until the result is as expected. The skill is aimed at developers building apps on Fabric data.
Written from the project's SKILL.md and checked against it.
What it can do
- DAX syntax rulesExplains rules such as EVALUATE usage, fully-qualified column references, and measure references.
- Query patternsProvides inline examples using DEFINE, VAR, SUMMARIZECOLUMNS, TREATAS and TOPN.
- Time intelligenceCovers period-to-date, period comparisons, rolling windows and opening or closing balances.
- Testing and iterationRuns a generate, execute, inspect, fix and re-test workflow for DAX queries.
- Query executionRuns DAX inline with --query or from a .dax file with --file using the fabric-app-data CLI.
- Troubleshooting guideLists fixes for CLI sign-in and alias errors, DAX syntax errors, and unexpected time intelligence results.
What you need
- Azure CLI installed and signed in with az login
- A registered fabric-app-data alias for a Power BI semantic model
Try asking
- Write a DAX query for total sales by year and product category.
- Create a year-to-date sales measure and test it against my model.
- Build a rolling 12-month revenue query and check the results.
Good to know
- The CLI returns at most 1000 rows by default.
- The row limit applies only to the CLI; the full dataset is available in the running app.
- Time intelligence needs a properly configured Date table.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: fabric-app/.agents/skills/dax-authoring/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to dax-authoring
All alternatives →Guides an assistant through the Kaggle CLI, covering competitions, datasets, notebooks, models, benchmarks, authentication and quota. It is for people who use the kaggle command-line tool.
Generates Python code that uses BigQuery DataFrames (BigFrames) for data processing, analysis and machine learning on BigQuery. It is meant for Python data tasks, and the source says to use bigquery-basics for SQL-first workflows.
Discovers connected data sources and proposes loading options when a workspace lacks the data a question needs. Suited to users who want to connect database, warehouse or cloud sources from the chat.
Guides developers through enabling the Data Manager API, setting up Application Default Credentials, and installing its client libraries. Built for developers who are getting started with the API and need local environment and access setup.
Guides authoring and validating Apache Airflow DAGs for Managed Service for Apache Airflow (MSAA), formerly Cloud Composer. Built for developers who create or extend Airflow DAGs in these environments.
Extracts structured JSON data from over 40 websites, including Amazon, LinkedIn, Instagram, TikTok, Facebook and YouTube. Built on Bright Data's Web Data APIs, it returns product details, profiles, reviews, posts and comments from a URL.
Compare with kaggle-cli, bigquery-bigframes or data-loading
dax-authoring: common questions
Does this skill test DAX queries before they are used?
Yes. The skill requires generated DAX to be run through the fabric-app-data query command before it is used in app code. The assistant then checks the results and fixes errors.
What DAX topics does the skill cover?
It covers syntax rules, query patterns, core functions such as CALCULATE and SUMMARIZECOLUMNS, BLANK semantics, and time intelligence.
Why does the CLI show only 1000 rows?
The source says the CLI returns at most 1000 rows by default and adds a _cliWarning when trimmed. The full dataset is available in the running app.
How do I install dax-authoring?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is dax-authoring free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is dax-authoring safe to use?
It scores 74 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to dax-authoring?
Similar skills: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.
