minasaad1/pbi-cli/power-bi-dax
Claude Code and agent skill by minasaad1/pbi-cli
- community
Checking that the SKILL.md file is still in the repository.
Write, execute, and optimize DAX queries and measures for Power BI semantic models using pbi-cli. Invoke this skill whenever the user mentions DAX, queries data in Power BI, writes calculations, creates measures, asks about EVALUATE, SUMMARIZECOLUMNS, CALCULATE, time intelligence, or wants to analyze/aggregate data from a semantic model. Also invoke when the user asks to run a query, test a formula, or check row counts. This skill contains critical guidance on passing DAX expressions via CLI arguments -- multi-line DAX (VAR/RETURN) requires special handling.
Install
npx vskill@latest install minasaad1/pbi-cli/power-bi-daxSKILL.md
Power BI DAX Skill
Execute and validate DAX queries against connected Power BI models.
Prerequisites
Executing Queries
DAX Expression Limitations in CLI
When passing DAX as a -e argument, the shell collapses newlines into a single line. Simple expressions like SUM(Sales[Amount]) work fine, but multi-line DAX using VAR/RETURN breaks because the DAX parser needs line breaks between those keywords.
Why this matters: A measure like VAR x = [Total Sales] VAR y = [Sales PY] RETURN DIVIDE(x - y, y) will fail with a syntax error because the engine sees it as one continuous line without statement separators.
Workarounds (pick one):
Single-line alternatives (preferred when possible):
For simple ratio/growth measures, use inline patterns instead of VAR/RETURN:
Validating Queries
Cache Management
Creating Measures with DAX
Common DAX Patterns
Explore Model Data
Aggregations
Filtering
Time Intelligence
Ranking
Performance Tips
- Use
--max-rowsto limit result sets during development - Run
pbi dax clear-cachebefore benchmarking - Prefer
SUMMARIZECOLUMNSoverSUMMARIZEfor grouping - Use
CALCULATEwith simple filters instead of nestedFILTER - Avoid iterators (
SUMX,FILTER) on large tables when aggregations suffice
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsrc/pbi_cli/skills/power-bi-dax/SKILL.md
Popularity
- Repository stars
- 400
- Repository forks
- 107
- 7-day trend score
- 30
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/minasaad1/pbi-cli/power-bi-dax)