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/rayfin /tmp/rayfin && mkdir -p ~/.claude/skills && cp -r /tmp/rayfin/samples/data-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/rayfin /tmp/rayfin && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/rayfin/samples/data-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
DAX Authoring is an agent skill that helps an AI assistant write and test DAX queries against Power BI semantic models. It covers DAX syntax rules, query patterns such as SUMMARIZECOLUMNS and TREATAS, and time intelligence guidance for year-to-date, year-over-year and rolling-window calculations. It also gives must, prefer and avoid guardrails for generating queries.
Generated queries are run with the npx fabric-app-data query command, and the results are checked for column names, data types, row counts and values before use in app code. If a query fails, the skill points to reference files so the assistant can fix it and test again. The CLI returns at most 1000 rows by default. The skill is aimed at developers who build apps on Power BI semantic models.
Written from the project's SKILL.md and checked against it.
What it can do
- DAX syntax rulesRules for EVALUATE, CALCULATE, naming, SQL keywords and DEFINE usage.
- Query patternsWorked DAX examples from simple aggregation to cross-table joins, plus anti-patterns to avoid.
- Time intelligenceGuidance for period-to-date, period comparisons, rolling windows and opening or closing balances.
- Test workflowRuns DAX, inspects the results, fixes errors and re-tests until the output matches expectations.
- fabric-app-data queryRuns a DAX query from the command line with --query, or a saved .dax file with --file.
- BLANK semanticsReference on BLANK versus NULL, propagation, equality, ISBLANK and DIVIDE behaviour.
What you need
- Azure CLI installed
- Signed in to Azure CLI 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 month using SUMMARIZECOLUMNS.
- Create a year-to-date sales measure and test it with the fabric-app-data CLI.
- Build a DAX query that returns the top 10 products by total sales amount.
Good to know
- The CLI returns at most 1000 rows by default.
- Row trimming is a CLI-only limitation; the full dataset is available in the running app.
- Time intelligence functions require a properly configured Date table.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: samples/data-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
How are DAX queries tested with this skill?
Queries are run with npx fabric-app-data query against a registered alias, or with --file for an existing .dax file. The results are then checked for columns, data types, row counts and values.
What happens when a query result is trimmed?
The CLI output includes a _cliWarning field, such as Result trimmed to first 1000 of 5000 rows. The full dataset is still available in the running app.
Does time intelligence need special setup?
Yes. The source says time intelligence functions require a properly configured Date table, and the skill covers the date table prerequisites.
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 73 of 100. Grades: maintenance A, licence A, quality A. 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.
