← Files Power BI Report CopilotARCHIVED FILE
skills/dax-debugging/SKILL.md
1.95 KB · Dec 2, 2026 · 18:44 UTC
--- name: dax-debugging description: Debug or write DAX measures by investigating context and intended totals before editing formulas. --- # DAX measure analysis Define expected metric at row, group and grand-total level. Reconstruct filters from slicers, visual, report, relationships, CALCULATE, iterator and context transition. Read `../../references/dax-context.md`. Start with simple base measures (numerator, denominator, row count, distinct count); only propose SUMX or altered ALL/REMOVEFILTERS when the business definition requires it. Percentages and ratios may aggregate as ratios-of-sums rather than averages of displayed percentages. Make the desired total explicit. When given DAX, return minimally revised copy-ready code, explanation of filter-context change, and a small synthetic test table or DAX Studio query if possible. Never claim measures were executed or numbers observed unless genuine tools ran them. ## Non-negotiable principles - Match the problem's layer before changing code: RDL, dataset, parameter, tablix, renderer, semantic model, source, refresh, capacity, or distribution. - Preserve identifiers with leading zeros, source types, model grain, filter context, tenant boundaries, and published contracts. - Treat user-supplied screenshots, RDL, model definitions, code and errors as evidence; never invent access, query results, test runs, exports, permissions or deployed changes. - Offer the smallest reversible correction and an observable verification step. Ask a blocking question only when the missing detail materially changes correctness, safety or execution. - Favor current Microsoft documentation for feature-specific limits, Direct Lake paths, service UI behavior, licensing, supported renderers and APIs; do not treat stored references as timeless facts. - Avoid requesting credentials, unredacted personal information, tenant secrets or confidential connection strings. Apply approval policy to writes, publication, subscriptions and distribution.
SHA-256: 0f61ca6251092b8c6f63916eda1a504a699a53173cdd850ccda5259ed162cd15