Semantic Model Compiler & Quality Gate

Refactor Power BI models
for developers, CI/CD, and modern AI dashboards.

Static analysis, architectural verification, and automated quality gates for Tabular models. Audit 8 best-practice rules, export standalone offline HTML reports, write descriptions directly back into your model, and bridge verified semantic contracts into Claude dashboards and Microsoft Fabric Rayfin data apps.

Free Community Edition 100% In-Memory Privacy Zero Telemetry Privacy Policy
SalesModel.bim: Health Scorecard
54/100
Grade F
3 high 2 medium 3 low
  • BP-01 Bi-directional filter 'Customer'[RegionKey] ↔ 'Region'[RegionKey]
  • BP-03 Calculated fact column 'Sales'[Amount Band]
  • BP-05 Target table missing 'Region'
  • BP-02 Exposed foreign key 'Sales'[OrderDate]
  • BP-07 Undocumented entity 'Customer'

Verified output from sample SalesModel fixture.

Undocumented models become technical debt. Reverse-engineering them shouldn't.

Production models accumulate hundreds of measures, unoptimized relationships, and undocumented DAX dependencies over years of releases. Manual documentation is obsolete the moment it is written, while generic LLM chats hallucinate calculations without ground-truth metadata. RefactorBI executes factual extraction deterministically, isolating AI interpretation to strictly verified review queues.

Capabilities

Static analysis, governance, and model modernization

Deterministic Documentation

Tables, columns, measures, hierarchies, and relationships extracted directly from metadata. DAX expressions preserved verbatim with optional multi-provider AI interpretations tagged by confidence level.

Standalone Offline HTML Reports

Export self-contained, single-file HTML reports with zero CDN dependencies. Features real-time client-side table and measure search, syntax formatting, and health drilldowns for air-gapped corporate networks.

Automated CI/CD Quality Gate

Run refactorbi check in GitHub Actions or Azure DevOps to fail pull requests on architectural regressions. Enforce minimum score thresholds (e.g. --min-score 70) and zero high-severity errors.

Dynamic Multi-Provider AI Engine

Bring your own API key for Google AI Studio (Gemini 3.8 Flash, 3.5 Flash Lite, 3.1 Pro), Anthropic Claude, or OpenAI. Queries and discovers available models live. Credentials remain in-memory with zero disk persistence.

Architectural Health Scorecard

A 0-100 score and A-F grade evaluated against 8 structural rules: bi-directional filters, exposed foreign keys, calculated fact columns, many-to-many cardinality, broken relationships, ambiguous DAX, undocumented tables, and orphan measures.

Lineage & DAX Dependency Trees

Entity-relationship diagram with cardinality and filter propagation, plus measure dependency graphs that reveal downstream impact before modifying or deprecating DAX logic.

Two-Way Tabular Write-Back

Synchronize approved descriptions back into your model as native tooltips. Export an enriched .bim or generate Tabular Editor C# scripts. Existing descriptions are protected unless explicitly overwritten.

Report Visual Usage Audit

Parse PBIR or .pbix report layouts to map field and measure bindings across visuals, identifying high-impact metrics and flagging dead-weight measures with zero references.

Governance Review Queue

Review and verify AI-generated enrichments before sign-off. Export immutable compliance audit logs (signoff_audit.json) with reviewer stamps for enterprise data cataloging.

Interactive Output

Inspect model architecture, lineage, and contracts

Live deliverables generated from our sample SalesModel fixture.

Measure: Sales LY Metadata fact

Home table
Sales
References
[Total Sales], 'Date'[Date]
CALCULATE (
    [Total Sales],
    SAMEPERIODLASTYEAR ( 'Date'[Date] )
)
AI interpretation Strong inference

Total sales for the same period one year earlier, utilized for year-over-year performance benchmarking. Requires continuous date sequences on the marked Date dimension.

AI interpretations are quarantined with confidence indicators until reviewed and approved by an engineer.

Continuous Integration

Automate model governance in GitHub Actions and Azure DevOps

Block breaking changes, relationship errors, and model quality degradation before code merges into main.

Fail PRs on architectural regressions

Add refactorbi check to your pull request workflow. The CLI parses Tabular models in milliseconds, audits 8 structural rules, and outputs GitHub step summaries with clear failure diagnostics.

  • Enforce minimum health scores (e.g. --min-score 75)
  • Zero-tolerance policy for high-severity anti-patterns (--max-high 0)
  • Detect broken relationships and bi-directional cross-filtering
  • Runs headless in GitHub Actions, Azure Pipelines, and GitLab CI
Terminal: refactorbi check
$ refactorbi check ./SalesModel.pbip --min-score 70 --max-high 0

[FAIL] Quality Gate Failed
- Health Score: 54/100 (Threshold: 70)
- High Severity Violations: 3 (Allowed: 0)

Violations:
[HIGH] BP-01: Bi-directional filter on 'Customer'[RegionKey]
[HIGH] BP-03: Calculated column in fact table 'Sales'[Amount Band]
[HIGH] BP-05: Relationship targets missing table 'Region'

Process completed with exit code 1.
Modernize & Migrate

Bridge verified business logic to Claude and Microsoft Fabric Rayfin

Avoid rebuilding production metrics by hand. RefactorBI compiles legacy semantic models into typed, machine-readable contracts for AI coding agents and custom data apps.

Claude Dashboard Manifests

Export token-optimized claude_agent_context.md manifests with verified metric formulas, table relationships, and filter contexts. Build interactive dashboards and answer executive questions without hallucination.

Fabric Rayfin App Schemas

Generate production-ready TypeScript schemas (rayfin_schema.ts) ready for Fabric's Rayfin CLI. Build custom, interactive React and Plotly operational data applications wired directly to OneLake.

Dead-Weight Measure Elimination

Identify unreferenced measures across all report visuals and filters. Prune abandoned legacy calculations before migrating a single line of application code.

Supported Inputs

Compatible with modern Power BI project formats

FormatExtracted Content
PBIP (zipped project)Semantic model (TMDL or BIM) and report layout visuals for complete audit coverage
TMDLTables, columns, measures, hierarchies, and relationships in tabular definition language
BIM / TMSLFull Tabular model JSON exported from Tabular Editor, Visual Studio, or Microsoft Fabric
PBIRReport pages, visuals, and specific field bindings
PBIXReport layout layer: pages, visuals, and bound measures. Save as .pbip in Power BI Desktop for data model metadata.
Privacy & Security

Metadata only. Local in-memory processing.

Never Transmitted

  • Underlying data rows: RefactorBI inspects metadata only
  • Power Query / M scripts and SQL source expressions
  • Connection strings and database credentials
  • Row-level security (RLS) definitions
  • Model annotations

AI Provider (Only If Enabled)

  • Table, column, and measure names
  • Data types and existing descriptions
  • DAX expressions

Supports bring-your-own-key (Claude, OpenAI, Gemini) or internal enterprise gateway. When AI is disabled, zero data leaves your machine.

Processed Locally

  • Parsed directly in memory with zero database persistence
  • No user account or telemetry required
  • Parsing, health audits, lineage, and write-back execute deterministically
Comparison

Designed to complement your existing engineering stack

CapabilityManual DocsGeneric LLM ChatTabular EditorRefactorBI
Time to Full DocumentDaysHours (copy-paste)Scripting requiredSeconds
Ground-Truth SeparationNoneNo (hallucinations)NoneYes (fact vs inference)
Dynamic Multi-Provider AINoUnverifiedManualYes (Live Model Discovery)
Standalone Offline HTML ReportNoNoNoYes (Zero CDN Dependencies)
Automated CI/CD Quality GateNoNoScripting requiredYes (refactorbi check)
Best-Practice Architecture AuditNoNoYes (BPA rules)Yes (8 rules + scorecard)
Lineage & ER DiagramsManualNoPartialYes (ERD + DAX trees)
Tabular Model Write-BackManualNoYesYes (.bim + TE scripts)
Visual Usage AuditNoNoNoYes (PBIR / PBIX)
Claude & Rayfin Contract BridgeNoNoNoYes (0% metric drift)
Governance Sign-Off Audit TrailManualNoNoneYes (signoff_audit.json)

RefactorBI generates scripts compatible with Tabular Editor 2 and 3.

Community & Access

Free developer utility. Zero lock-in.

RefactorBI is distributed as a community utility for Power BI developers, analytics engineers, and BI consultants.

Roadmap Preview

Cloud & Team Workspaces

Preview

Future hosted edition for enterprise organizations

  • Centralized team documentation portal and searchable model catalog
  • Automated direct synchronization with Power BI Service and Fabric REST APIs
  • Multi-developer collaborative sign-off queues and approval workflows
  • Enterprise SSO (Entra ID, Okta) and role-based access control
  • Cross-workspace metric drift alerting and semantic cataloging
  • Self-hosted Docker and Kubernetes deployment options
Request Roadmap Updates

Community edition is free for personal, internal, and client engagements. No credit card, no telemetry, no invoices.

FAQ

Frequently Asked Questions

Can I export documentation as a standalone HTML file for offline or air-gapped networks?

Yes. RefactorBI compiles a single-file HTML document with embedded dark CSS, syntax highlighting, and an offline search filter for tables and measures. It requires zero CDN requests, zero external scripts, and zero network access.

How does the CI/CD Quality Gate work in GitHub Actions?

Run refactorbi check <path> --min-score 70 --max-high 0 in your pull request workflow. The command audits the semantic model in milliseconds, returns exit code 1 if thresholds fail, and generates a formatted GitHub step summary of all detected anti-patterns.

How does dynamic model discovery work with my API key?

When you enter your Google AI Studio, Anthropic, or OpenAI API key in the Web Workbench, RefactorBI queries the provider API in real time to enumerate all models available for your account (prioritizing gemini-3.8-flash, gemini-3.5-flash-lite, claude-3-5-sonnet, and gpt-4o). Keys are stored only in transient session memory and are never saved to disk.

Do I need an AI API key to use RefactorBI?

No. Documentation extraction, health scores, lineage diagrams, and write-back scripts execute deterministically without AI. AI explanations are strictly optional: you can supply your own API key for Google AI Studio, Anthropic Claude, or OpenAI, or connect an internal corporate proxy.

Can the AI generate hallucinations or incorrect metrics?

Metadata facts (tables, columns, data types, relationships, DAX formulas) are parsed directly from source files and are never passed through an LLM. AI is only used for descriptive interpretations, which are tagged with confidence indicators and quarantined in a review queue until an engineer approves them.

Does it work with existing .pbix files?

For .pbix files, RefactorBI parses the report layout layer: pages, visuals, and bound measures. Because the internal data model in a .pbix is compressed and proprietary, full model documentation requires saving the project as a Power BI Project (File → Save as → .pbip) and uploading the folder.

Will RefactorBI modify my original files?

Never directly. Write-back outputs a new .bim file or a Tabular Editor C# script that you review and execute inside your development environment. Existing descriptions are preserved unless you deliberately choose to overwrite them.

Does RefactorBI evaluate DAX formulas or query source data?

No. DAX expressions are analyzed statically as text: they are never executed, and RefactorBI never connects to your underlying databases or data sources.

Is there native support for Microsoft Fabric or Power BI Service?

You can upload models exported via Power BI Desktop, Tabular Editor, or Fabric Git integration (TMDL/PBIP). Direct workspace API synchronization is part of the cloud roadmap preview.

Automate your Power BI model documentation and health audits

Join the early access waitlist for developer downloads, CLI releases, and cloud workspace updates.

You will only receive notifications regarding RefactorBI releases and access. Unsubscribe anytime. View our Privacy Policy.