querying-fabric — Claude Code skill for Fabric queries
querying-fabric is a Claude Code skill that builds and tests DAX queries for Fabric and Power BI semantic models. It prepares data for dashboard KPIs, charts, and tables.
GPL-3.0 ★ 1,104 updated 2026-10-28
/plugin marketplace add data-goblin/power-bi-agentic-development
/plugin install dashboards@power-bi-agentic-developmentWhat querying-fabric does
The skill starts by locating a semantic model and reading its schema, then uses existing measures to answer a business question. It creates a separate DAX query for each visual, checks the files with lint_dax.py, runs them through run_dax_query, and compares results with a known total. T-SQL is covered for Fabric SQL endpoints.
A KPI should include its value, target, and trend. Selecting a mark in one visual should filter the others, with query parameters carrying the selection. The skill also addresses measures that require a currency or period selection. Fix lint errors before running a query; some measures return blank when a required selection is missing.
What it helps with
- find the right measures in a semantic model
- write a DAX query for a KPI or chart
- lint and run queries before wiring up a dashboard
- pass visual selections through crossfilters
- compare a query result with a trusted total
Example prompts for the agent
- Build a KPI from the Power BI model using an existing measure, target, and trend.
- Lint the DAX files in
queries/*.dax, then run them withrun_dax_query. - Wire the dashboard visuals so selecting a dimension filters the others.
How to install querying-fabric
1Plugin marketplace
/plugin marketplace add data-goblin/power-bi-agentic-development/plugin install dashboards@power-bi-agentic-developmentThis installs the whole dashboards plugin with all its skills
2Skills CLI (Vercel)
npx skills add data-goblin/power-bi-agentic-development --skill querying-fabric -a claude-code3Manually: put the files in place
~/.claude/skills/querying-fabric/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/querying-fabric/
1Skills CLI (Vercel)
npx skills add data-goblin/power-bi-agentic-development --skill querying-fabric -a codex2Manually: put the files in place
.agents/skills/querying-fabric/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add data-goblin/power-bi-agentic-development --skill querying-fabric -a cursor2Manually: put the files in place
.cursor/skills/querying-fabric/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install data-goblin/power-bi-agentic-development plugins/dashboards/skills/querying-fabric2Manually: put the files in place
.github/skills/querying-fabric/SKILL.md1Skills CLI (Vercel)
npx skills add data-goblin/power-bi-agentic-development --skill querying-fabric -a gemini-cli2Platform CLI
gemini skills install https://github.com/data-goblin/power-bi-agentic-development --path plugins/dashboards/skills/querying-fabricManually: put the files in place
.devin/skills/querying-fabric/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about querying-fabric
How do I install querying-fabric in Claude Code?
Add the marketplace with /plugin marketplace add data-goblin/power-bi-agentic-development, then install the plugin with /plugin install dashboards@power-bi-agentic-development.
What does querying-fabric do?
It guides Claude Code through finding measures in Microsoft Fabric and Power BI models, then writing and testing DAX queries for dashboards. It also covers T-SQL for Fabric SQL endpoints.
Why might a measure return a blank value?
Some measures depend on a slicer selection, such as a currency or period. Pass that selection as a filter and display it in the dashboard.