Metadata change review
Treat model edits as code changes
Freeze a known baseline, record the target model and engine build, make an isolated copy, and review the smallest intended change. A metadata diff is a comparison of object identities and properties, not just file size or number of lines. Normalize object ordering only where it is semantically irrelevant; preserve ordered expressions, partition definitions and lineage identifiers. Review dependencies, security filters, permissions, calculation-group precedence and report bindings. A clean diff is necessary but does not replace execution tests.
Best Practice Analyzer and reasoned exceptions
Best Practice Analyzer (BPA) evaluates rules against metadata. Use it to find missing measure descriptions, naming issues or other configured problems. In both Tabular Editor versions inspect the rule scope and affected object; TE3 includes built-in rules. Rules are guidelines, not proof of correctness. A custom lab rule flags any measure without a description and any exposed surrogate key. An exposed RegionKey is intentional for the diagnostic perspective, so retain a documented exception with owner, scope, reason, review date and expiry. It is not a security exemption. Do not apply a bulk fix script without inspecting changes and rerunning tests.
Example 1 — approve the narrow change
Compare model-before.json to model-after.json. Only Revenue.description and Revenue.displayFolder change. The offline verifier checks the exact two paths, confirms every dependency still exists, and recomputes 220 overall, 140 North, 80 South and no rows for an unmapped persona. The description rule passes after the change; the RegionKey exception remains explicitly recorded. In a native lab, open a copy, script the existing measure in TMDL view or edit the corresponding properties in Tabular Editor, preview and save locally. Run the same queries and role tests before and after. Keep the original file unchanged.
Example 2 — reject a security regression
The deliberately unsafe candidate changes NorthReader’s predicate to TRUE(). The offline policy interpreter detects that North gains South rows: expected 140 becomes 220. Reject the candidate even if all-user Revenue is unchanged and the BPA description rule passes. Another candidate changes Revenue to COUNTROWS(Sales); expected numeric total becomes 4 instead of 220. A third candidate removes the Amount column while keeping the measure dependency, which fails structural validation. These are negative test fixtures, not changes to apply. Restore from the baseline or discard the local candidate; do not use a production deployment as a test.
Release gates and evidence
Require exact metadata diff allowlist, dependency checks, review of BPA findings and exceptions, measure parity at total and regional grains, role tests including missing mapping and unauthorized object access, and validation of client report bindings. In a native environment record the model build, tool version, effective persona, query text and observed result, not screenshots invented from expected values. Test with actual restricted consumers, not an admin whose permissions bypass RLS. An authorized deployment and tested rollback plan are separate approval steps. The offline lab does not claim engine-level RLS, syntax or report compatibility; release remains blocked.
Practice — write a change-review decision
Run python labs/tabular-tools/verify.py from the package root. Compare the approved candidate and three rejected candidates. Write a review with the allowed paths, expected outputs, one reasoned BPA exception, rollback plan and native tests still required. Hint: identical grand totals do not establish security parity. Next: the governed semantic model capstone.
Documentation search extracts checked 2026-11-29. Installed versions and native execution NOT RUN.
- https://docs.tabulareditor.com/en/features/Best-Practice-Analyzer.html
- https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-tmdl-view
- https://learn.microsoft.com/en-us/analysis-services/tmsl/createorreplace-command-tmsl?view=sql-analysis-services-2025
- https://learn.microsoft.com/en-us/power-bi/enterprise/service-premium-connect-tools/
- https://learn.microsoft.com/en-us/analysis-services/tabular-models/roles-ssas-tabular?view=sql-analysis-services-2025