dax-authoring
Skill1 starsChanged 20 days agoMITView on GitHub
Use when authoring or testing bounded DAX queries for a verified Power BI semantic-model connector.
12 other projects use a version of this.
Adopted by
Most recently taken up by
- microsoft/ignite26-PREL40their own version, first seen Nov 22, 2026
- microsoft/fabric-apps-analytic-templatestheir own version, first seen Nov 16, 2026
- microsoft/awesome-rayfintheir own version, first seen Nov 15, 2026
- microsoft/DataHub-App-for-Microsoft-Copilot-Agents-Cowork-and-Autopilotstheir own version, first seen Nov 8, 2026
- microsoft/ValueLens-for-Microsoft-Copilottheir own version, first seen Oct 25, 2026
- microsoft/ConsumptionCentral-for-Microsoft-Copilottheir own version, first seen Oct 25, 2026
Other versions12 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 12
- microsoft/rayfin★ 646same name
- microsoft/awesome-rayfin★ 116same name
- microsoft/ConsumptionCentral-for-Microsoft-Copilot★ 36same name
- microsoft/fabric-apps-analytic-templates★ 31same name
- microsoft/ValueLens-for-Microsoft-Copilot★ 23same name
- microsoft/AnalyticsHub-Dashboard★ 16same name
- microsoft/DataHub-App-for-Microsoft-Copilot-Agents-Cowork-and-Autopilots★ 16same name
- microsoft/aitour27-LTG291-turn-your-data-into-production-apps-with-rayfin★ 3same name
- microsoft/frontiertour27-LTG291-turn-your-data-into-production-apps-with-rayfin★ 3same name
- microsoft/ignite26-PREL40★ 3same name
2 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository19 other files it gives its agents.
- src/field-services-app/AGENTS.mdAGENTS.md
- template/field-services-app/AGENTS.mdAGENTS.md
- lab-instructionsSkill
- lab-vm-updateSkill
- app-deploymentSkill
- app-validationSkill
- query-designSkill
- rayfin-connectorsSkill
- rayfin-functionsSkill
- rayfinSkill
- rayfin-storageSkill
- app-deploymentSkill
- app-validationSkill
- dax-authoringSkill
- query-designSkill
- rayfin-connectorsSkill
- rayfin-functionsSkill
- rayfinSkill
- rayfin-storageSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 3 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 12 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 7
Use rayfin-connectors to verify the intended model and discover actual tables, columns, measures, relationships, and date table.
- Very specific: line 9
Use existing measures first: [Measure] and fully qualified 'Table'[Column].
- Very specific: line 11
Use one DEFINE block for query variables/measures.
- Distinctive: line 14
Check date-table continuity, relationships, fiscal/calendar semantics, and filter context before time-intelligence calculations.
- Very specific: line 18
Every semantic-model input must specify a positive integer resultSetRowCountLimit.
- Distinctive: line 40
Use the exact envelope in the app, check errors explicitly, and also test through the deployed browser: the CLI's direct developer …
“Common” is measured: kept by at least 6 in 10 of the 12 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
DAX authoring
Use rayfin-connectors to verify the intended model and discover actual tables, columns, measures, relationships, and date table. Do not invent a sales schema or model measures.
- Use existing measures first:
[Measure]and fully qualified'Table'[Column]. EVALUATErequires a table expression; useROWfor scalar probes.- Use one
DEFINEblock for query variables/measures.CALCULATEtakes a scalar,CALCULATETABLEa table. - For grouped aggregates use
SUMMARIZECOLUMNS: grouping columns, filters, then named expressions. UseTREATASfor explicit filter values where appropriate. - Preserve BLANK and numeric values; do not use
FORMAT, string decoration, or numeric coercion to fix a decoding error. Compare CLI/SDK versions and the original measure first. - Check date-table continuity, relationships, fiscal/calendar semantics, and filter context before time-intelligence calculations. Use the requested reporting period, not the current date by assumption.
Bound every query
Every semantic-model input must specify a positive integer resultSetRowCountLimit. Aggregate to the required grain and bound detail/member discovery too; there is no safe implicit row cap.
For a display limit of N rows, request at most N+1 and treat more than N returned rows as a visible over-limit error asking for narrower filters. Never silently slice an over-limit response. A service cap can truncate without an error, so a response at the cap is not evidence of completeness. TOPN can return ties; use a unique tie-breaker where the model supports one and retain the envelope limit and overflow check. Do not calculate totals from a potentially truncated detail set.
A schema-independent one-row transport probe:
{ "query": "EVALUATE ROW(\"Probe\", 1)", "resultSetRowCountLimit": 1 }This proves only transport. Real app queries must use the verified model and the N+1 policy above.
Execute, inspect, integrate
Save the JSON input envelope inside the app root, then run:
npx rayfin connector invoke <alias> executeQuery --file <query.query.json>Read installed guide cli/connectors/invoke.md and the version-matched semantic-model SDK docs for result shapes. Inspect normalized status, column names/types, row count, BLANKs, units, totals, dates, and actual values. Fix and rerun before UI integration. An overflow result error is a failed query, not proof the row cap was reached.
Use the exact envelope in the app, check errors explicitly, and also test through the deployed browser: the CLI's direct developer transport is not the deployed caller's route. Use query-design for presentation boundaries.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

