Power BI Documentation, Report X-Ray & Live Lineage Studio (pbi-doc-generator v1.1)
Live Interactive Demo • Download Windows .zip (No Python) • What's New in v1.1 • Quick Start • 10-Tool MCP Setup • Security • v1.2 Roadmap
Turn Power BI Service / Microsoft Fabric Workspaces and local .pbix / .pbip / .xlsx files into an interactive, searchable architecture portal. Trace any number on a report page from Visual -> Report-Level DAX -> Semantic Model -> Power Query & Native SQL -> Dataflow Gen1 / Fabric Gen2 -> OneLake / Source Database, 100% locally and read-only.
Why BI & Fabric Teams Upgrade to v1.1
Most Power BI documentation tools stop at a single .pbix file, while Power BI's native Workspace Lineage View stops at the container boundary (Dataflow -> Semantic Model -> Report) without showing which SQL query, Dataflow entity, column, or DAX measure drives which visual.
pbi-doc-generator v1.1 connects the entire estate inside a calm, zero-clutter 4-tab portal:
- Slide-Over Report & Dataflow X-Ray Inspector (No Tab Sprawl)
- Click any Power BI report (
PBIRor legacyreport.json) to open a slide-over X-Ray drawer without losing your place in the catalog. - Renders 16:9 SVG page wireframes with chart-type schematics, visual group containers, bound measures/columns, report/page/visual filters, slicer selections, thin-report local DAX measures (
reportExtensions.json), and a 1-click Broken Visual Binding Stepper that highlights visuals pointing to renamed or deleted fields.
- Click any Power BI report (
- Deep Dataflow Gen1, Fabric Dataflow Gen2 & Direct Lake Lineage
- Follows multi-layer Dataflow Gen1 chains (
L1/L2+linkedReferenceEntitytables across workspaces) and Fabric Dataflow Gen2 (mashup.pq+ OneLake Lakehouse and Warehouse table destinations), connected directly to Direct Lake and Import semantic models. - Automatically extracts and formats embedded Native SQL (
Value.NativeQuery,Sql.Database,SapHana,Snowflake,Odbc.Query) and translates Power Query M into clickable plain-English transformation steps.
- Follows multi-layer Dataflow Gen1 chains (
- Zero-Dependency Star-Schema Explorer, Unused Column & DAX Measure Auditing
- Native HTML+SVG Star-Schema Explorer with Focused Star tabs per Fact table, zoom, pan, fullscreen, and click-to-pin relationship highlighting.
- Full static dependency auditing across model internals (
Key,SortByColumn, Field Parameters, Hierarchies,RLS/OLS, Incremental Refresh, DAX) and scanned reports (visuals, slicers,fxconditional formatting, filters, report-level DAX), with instantAll | Used | Unusedfilter pills on both Columns and SQLBI-formatted DAX Measures.
- Scoped Export & 1-Click SharePoint Online Publishing
- Click Export / Publish from the catalog or from any individual semantic model page and choose your scope (This Semantic Model or Entire Catalog):
- Print / Save as PDF (clean A4 portrait executive layout with stacked full-width vector Star-Schema diagrams)
- Standalone HTML or Offline Portal
.zip - Data Dictionary (
Word .doc,Markdown, orCSV) - SharePoint Online: either upload directly in 1 click to a SharePoint Document Library URL or download a compressed
srcdoc-safe single-file HTML portal (export-site).
- Click Export / Publish from the catalog or from any individual semantic model page and choose your scope (This Semantic Model or Entire Catalog):
- Guided 3-Step Local Web Studio & High-Speed Parallel Scanner (
http://127.0.0.1:8765)- Zero Azure Admin Setup: Sign in with your normal Microsoft work account (
Sign in with MicrosoftOAuth PKCE with instant popup & auto-refresh, corporatePower BI Web WindowSSO fallback, Azure CLI, or Service Principal). - 10x-15x Faster Enterprise Scanning with Live ETA: Progressive
1. Connect -> 2. Choose Workspaces -> 3. Scan & Buildworkflow, 8-worker parallel inventory, 6-worker model TMDL and 8-worker report extraction, progressive1sFabric LRO polling, persistent HTTP/1.1 TLS keep-alive pooling, and a 5-stage live progress bar with percentage and ETA built for workspaces with hundreds of models and reports. - Safe Catalog Management & Offline Local Mode: Automatic
v1.0 -> v1.1upgrade detection with safe backup,--follow-outsidecross-workspace resolution, explicitUpdate Catalogvs.Clean Slatemodes, and 100% offline drag-and-drop for.pbix,.pbip/.SemanticModel, and Excel PowerPivot.xlsxfiles.
- Zero Azure Admin Setup: Sign in with your normal Microsoft work account (
- 10-Tool Local Model Context Protocol (MCP) Server for AI Assistants
- Connect VS Code GitHub Copilot, Claude Desktop, Cursor, or Antigravity to your local catalog (
pbi-doc-generator mcp) for instant visual-to-SQL impact analysis, DAX explanations, report layout inspection, and governance audits with automatic secret masking.
- Connect VS Code GitHub Copilot, Claude Desktop, Cursor, or Antigravity to your local catalog (
Help shape
v1.2: Want Fabric PySpark/SQL Notebook -> Lakehouse lineage (#18), Hidden Filter & RLS-Bypass Risk Audits (#17), Pro-workspace REST fallback (#16), orDEVvs.PRODmodel diffs (#15)? Check ROADMAP.md and vote with a 👍 on thev1.2Milestone Issues.
Quick Start
Option 1: Portable Windows Download (No Python Required)
- Download
PBI_Doc_Generator_Windows_Portable.zip(Latest Stable Release) (or view the Latest Release page). - Right-click the downloaded ZIP file and choose Extract All...
- Open the extracted folder and double-click
PBI_Doc_Generator.exe-> your browser openshttp://127.0.0.1:8765automatically.
Option 2: Install via pip (Python 3.10+ on Windows, macOS & Linux)
pip install --upgrade "git+https://github.com/djrien-ai/pbi-doc-generator.git"
pbi-doc-generator
(Or on Windows with Python installed: git clone https://github.com/djrien-ai/pbi-doc-generator.git and double-click Start_Studio.cmd.)
Command-Line Usage (CLI & CI/CD)
# Launch the interactive Web Studio on http://127.0.0.1:8765 (default)
pbi-doc-generator
# Scan specific workspaces (add --follow-outside to resolve upstream models/dataflows in other workspaces)
pbi-doc-generator scan --workspace "Supply Chain" --follow-outside
# Generate an anonymized portal safe for external sharing (redacts owner/user names)
pbi-doc-generator portal --anonymous
# Package the entire portal into a single SharePoint-safe HTML file
pbi-doc-generator export-site -o ./PBI_Catalog_SharePoint.html
# Export a deep end-to-end SQL -> Power Query -> DAX -> Visual lineage spec for one measure
pbi-doc-generator measure-doc "OTIF %" --model "Global Supply Chain & OTIF Core" -o ./OTIF_Lineage.md
# Import a local .pbip, .SemanticModel, .pbix, or .xlsx into the catalog
pbi-doc-generator import-local ./SalesModel.pbip
# Start the local stdio MCP server (10 read-only tools) for AI assistants
pbi-doc-generator mcp
Local AI Assistant Setup (MCP Server - 10 Read-Only Tools)
Connect VS Code GitHub Copilot (.vscode/mcp.json), Claude Desktop (claude_desktop_config.json), or Cursor (~/.cursor/mcp.json) to your scanned catalog so AI agents can trace lineage and audit models locally without cloud data exposure:
{
"mcpServers": {
"pbi-doc-generator": {
"command": "pbi-doc-generator",
"args": ["mcp"]
}
}
}
(Using the Windows Portable download instead of pip? Point "command" to "C:\\path\\to\\PBI_Doc_Generator\\PBI_Doc_Generator.exe" with "args": ["mcp"].)
Included read-only MCP tools (with automatic secret masking):
- Catalog & Model Blueprint:
pbi_catalog_summary,pbi_list_models,pbi_inspect_model - Code & Lineage Search:
pbi_search_dax_and_m,pbi_measure_lineage,pbi_trace_measure_end_to_end - Report Visuals & Blast Radius:
pbi_report_layout,pbi_source_impact - Governance & Publishing:
pbi_health_audit,pbi_generate_portal
Security & Privacy by Design
- 100% Local Execution: Metadata, TMDL/PBIR definitions, and generated HTML stay on your machine (
127.0.0.1). Zero telemetry or external CDN calls. - Hardcoded Read-Only Power BI API Guard:
PowerBiReadOnlyClientblocksDELETE,PATCH,PUT, and mutatingPOSTcalls at the transport layer, allowing onlyGETmetadata endpoints and read-onlygetDefinitioncalls. - In-Memory Tokens Only: OAuth access tokens live strictly in Python RAM for the active session and are never written to disk.
- Automatic Secret & Storage Redaction: Connection passwords, SAS signatures, API keys, bearer tokens, and internal Dataflow storage URLs are automatically masked or stripped. See SECURITY.md for details.
Enterprise Integrations & Architecture Audits
The core of pbi-doc-generator is and remains 100% free and open-source under the MIT License. Organizations looking for custom enterprise integrations (automated CI/CD lineage publishing to SharePoint, Confluence, or Microsoft Purview, historical semantic-model drift monitoring, or white-label governance portals) or an independent Power BI Estate & Semantic Model Architecture Audit can connect with Rien Scheerlinck (LinkedIn | Bohan VOF):
Community & Support
Created and maintained by Rien Scheerlinck (@djrien-ai), with thanks to community contributors @andreasfelder (PR #19 contributions toward #13/#14 Dataflow Gen1, thin-report parsing & single-file SharePoint export), @jakubpokusa (PR #10 relationship viewer), @okiyuki99 (PR #11 Xpress9 pbixray support), and @nblankes (Issue #12 TMDL table doc-comment report).
If pbi-doc-generator saves your BI team hours of manual documentation or impact analysis, consider starring the repository or supporting ongoing open-source development on Ko-fi.
License
MIT License - Copyright (c) 2024-2026 Rien Scheerlinck. See LICENSE for full text.
Metadata
Release files for pbi-doc-generator 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pbi_doc_generator-1.1.0.tar.gz | 1.8 MB | With provenance | Details for pbi_doc_generator-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pbi_doc_generator-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for pbi_doc_generator-1.1.0-py3-none-any.whl |
Total release size: 3.6 MB
Release files / pbi_doc_generator-1.1.0.tar.gz
| Download URL | pbi_doc_generator-1.1.0.tar.gz |
|---|---|
| Size | 1.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e74227f639e892ab5db6d6f2501181cd8faa27560f08acf5c0c0dc121aab0815
|
|
BLAKE2b-256 checksum How to use checksums |
df0795875ed3ab6a3d3404c6ce32653f45b784b128aadff241b274beb5fc9c09
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logRelease files / pbi_doc_generator-1.1.0-py3-none-any.whl
| Download URL | pbi_doc_generator-1.1.0-py3-none-any.whl |
|---|---|
| Size | 1.8 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bd66d1343589ec60e28c8afc948ea209cc35d71a03b010e72d3f7c1192c7e5bb
|
|
BLAKE2b-256 checksum How to use checksums |
1ab313a85bd91a5b19d0338b27131a784aa55ab17032348a77367be652c42dcf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logSecurity for pbi-doc-generator 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pbi_doc_generator-1.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.