run_bpa
Runs the Best Practice Analyzer against Power BI semantic models, checking ~90 lint rules and returning findings with severity and fixable status. Filter by category, severity, rule ID, or scope.
Instructions
Run the Best Practice Analyzer: a catalogue of ~90 lint rules (merging the Tabular Editor and semantic-link-labs rulesets) across Performance, DAXExpressions, ErrorPrevention, Maintenance, NamingConventions, Formatting, Metadata and RelationshipsLayout. Read-only. Returns every finding (ruleId, category, severity 1 info/2 warning/3 error, objectType, objectName, message, fixable) plus a summary count by category and severity. Filter with categories / severities / ruleIds (comma-separated) and scope (Model|Table|Column|Measure|Relationship|Partition|Hierarchy). Use fix_bpa to auto-remedy fixable findings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | scope filter: Model|Table|Column|Measure|Relationship|Partition|Hierarchy | |
| ruleIds | No | comma-separated rule IDs to run only those (default all) | |
| sessionId | Yes | ||
| categories | No | comma-separated category filter, e.g. Performance,Metadata (default all) | |
| severities | No | comma-separated severity filter: 1 info, 2 warning, 3 error (default all) |