Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

dax-authoring

Skill by microsoft

DAX Authoring is an agent skill that helps an AI assistant write and test DAX queries against Power BI semantic models. It is for developers who need DAX checked before it reaches app code.

  • Score 84
  • 678 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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/universal-app/template/.agents/skills/dax-authoring ~/.claude/skills/dax-authoring

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install dax-authoring in Claude Code

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, common query patterns, time intelligence, and guardrails for generating queries. The skill links to reference files for function details, worked examples and anti-patterns.

Generated queries are run with the npx rayfin connector invoke command, which uses the same SDK pipeline as the running app. The skill follows an execute, inspect, fix and re-test loop. It is aimed at developers building apps on Power BI data who want their DAX checked before it reaches app code.

Written from the project's SKILL.md and checked against it.

What it can do

  • Query generationWrites DAX queries using EVALUATE, DEFINE, SUMMARIZECOLUMNS and TREATAS patterns.
  • Time intelligenceCovers year-to-date, year-over-year, rolling windows and opening or closing balances.
  • Query testingRuns generated DAX with npx rayfin connector invoke executeQuery before app use.
  • Iterative fixingInspects results, consults references on errors, and re-tests until results match.
  • Row limitsSupports resultSetRowCountLimit to fail queries that return too many rows.
  • Currency guardAdvises wrapping currency and decimal measures in CONVERT([Measure], DOUBLE).

What you need

  • npx rayfin CLI
  • A signed-in rayfin account (npx rayfin login)
  • A Power BI semantic model reachable through a rayfin connector alias

Try asking

  • Write a DAX query for total sales by year and product category
  • Build a year-over-year sales comparison measure and test it
  • Test this DAX query against my semantic model and fix any errors

Good to know

  • No row cap by default, so an unbounded EVALUATE returns every matching row.
  • The --file option expects a JSON envelope with a query field, not a bare .dax file.
  • Time intelligence queries need a properly configured date table.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: samples/universal-app/template/.agents/skills/dax-authoring/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md10 KB
  • references/dax-core-reference.md26 KB
  • references/dax-query-patterns.md8 KB
  • references/dax-time-intelligence.md9 KB

Alternatives to dax-authoring

All alternatives →
kaggle-cliKaggle
94

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.

AAA Skill 7.7k
bigquery-bigframesgoogle
94

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.

AAA Skill 25k
data-loadingmicrosoft
94

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.

AAA Skill 18k
data-manager-api-setupgoogle
94

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.

AAA Skill 25k
managed-airflow-dag-authoringgoogle
94

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.

AAA Skill 25k
data-feedsdavila7
94

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.

AAA Skill 34k

Compare with kaggle-cli, bigquery-bigframes or data-loading

dax-authoring: common questions

Does this skill need a Power BI semantic model?

Yes. The skill runs its queries through a connector alias for a Fabric semantic model.

Why test DAX with the CLI before using it in an app?

The source says the CLI uses the same SDK pipeline as the running app, so results match what the app produces at runtime.

Why wrap measures in CONVERT with DOUBLE?

The source says a fixed-decimal measure can come back as a scaled integer, so totals can be off by a factor of ten thousand.

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 84 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.

dax-authoring Install

Add to stack

Loading.