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

Power BI DAX

Skill by MinaSaad1

Power BI DAX is a skill for writing, running, validating and optimizing DAX queries and measures against Power BI semantic models. It uses the pbi-cli tool. It is for people who analyze or aggregate data in Power BI.

  • Score 79
  • 497 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install Power BI DAX

Built from the published package, never by AI.

git clone --depth 1 https://github.com/MinaSaad1/pbi-cli /tmp/pbi-cli && mkdir -p ~/.claude/skills && cp -r /tmp/pbi-cli/src/pbi_cli/skills/power-bi-dax ~/.claude/skills/power-bi-dax

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

Step-by-step: install Power BI DAX in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Power BI DAX is an agent skill that helps an AI assistant write, run, validate and optimize DAX queries and measures against Power BI semantic models. It works through the pbi-cli tool, which the skill installs and connects with pbi connect. The assistant can run inline queries, queries from a file, or queries piped from stdin, and can limit rows or set a timeout.

The skill also covers creating measures with pbi measure create, including time intelligence and year-over-year patterns. It explains that multi-line DAX with VAR and RETURN needs stdin or a .dax file when passed through the CLI. It is aimed at people who analyze or aggregate data in a Power BI model and want help writing DAX.

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

What it can do

  • Execute DAX queriesRuns inline queries, file-based queries, or queries piped from stdin using pbi dax execute.
  • Validate queriesChecks a DAX query for errors with pbi dax validate, inline or from a file.
  • Create measuresCreates DAX measures in a table with pbi measure create, including format strings.
  • Explore model dataLists tables and columns with INFO.TABLES and INFO.COLUMNS and previews table rows.
  • Aggregations and groupingShows patterns for SUM, AVERAGE, COUNTROWS and SUMMARIZECOLUMNS.
  • Time intelligenceProvides patterns for year-to-date, rolling 12 months and same-period-last-year measures.
  • Filtering and rankingShows CALCULATE, FILTER and TOPN patterns for filtering and ranking results.
  • Cache managementClears the formula engine cache with pbi dax clear-cache.

What you need

  • pbi-cli-tool installed with pipx
  • A connected Power BI semantic model

Try asking

  • Write a DAX measure for year-over-year sales change in my Power BI model
  • Run a DAX query to show the top 10 products by total sales
  • Check the row count of the Sales table in my connected model

Good to know

  • Multi-line DAX with VAR and RETURN fails when passed as a plain CLI argument and needs stdin or a .dax file.
  • Simple ratio measures are recommended as single-line inline DIVIDE expressions instead of VAR/RETURN.

Security check

A

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

Checked automatically: src/pbi_cli/skills/power-bi-dax/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md5 KB

Alternatives to Power BI DAX

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

Power BI DAX: common questions

How do I pass multi-line DAX with VAR and RETURN?

The skill says the shell collapses newlines when DAX is passed with -e, so multi-line DAX should be piped from stdin or written to a .dax file and run with --file.

Can this skill create measures in a Power BI model?

Yes. The skill shows how to create measures with pbi measure create, including simple aggregations, time intelligence and percentage formats.

Can I limit the number of rows returned by a query?

Yes. The source shows a --max-rows option for pbi dax execute and a --timeout option in seconds.

How do I install Power BI DAX?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is Power BI DAX free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is Power BI DAX safe to use?

It scores 79 of 100. Grades: maintenance A, licence A, quality B. 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 Power BI DAX?

Similar skills: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.

Power BI DAX Install

Add to stack

Loading.