How alisonpezzott/pbi-docs works
PBI-DOCS is a local Power BI tenant documentation extractor. Its principal workflow authenticates to the tenant, collects artifact metadata, extracts semantic-model details through DAX Studio, and generates Word documentation. PRO datasets follow a distinct report-export and local Power BI Desktop route before the same kind of extraction. The README also documents dataflow JSON exports. Source excerpts establish these stages, but omit portions of the scripts; edges for the documented but unsampled orchestration are therefore not asserted.
Main entry points: pbi_docs.py Tenant metadata · pbi_docs_pbix_local.py Local model extraction · exported_pbix Exported PBIX files
Components 17
Tenant discovery
- Token acquisition
src/pbi_docs.py - Tenant metadata
src/pbi_docs.py - Dataflow export
src/pbi_docs.py - Metadata JSON
- Dataflow JSON files
Model extraction
- Dedicated dataset details
src/pbi_docs.py - Dataset detail CSVs
PRO local extraction
- PRO PBIX export
src/pbi_docs.py - Exported PBIX files
results/exported_pbix - Local model extraction
src/pbi_docs_pbix_local.py - Desktop connection handling
src/pbi_docs_pbix_local.py
Documentation outputs
- Word documentation generator
src/pbi_docs.py - DOCX documentation
Other components
- Operator
- Power BI tenant
- Power BI Desktop
- DAX Studio CLI
Connections 21
- Operator → Token acquisition: starts run
- Token acquisition → Power BI tenant: requests token
src/pbi_docs.py - Token acquisition → Tenant metadata: provides token
src/pbi_docs.py - Tenant metadata → Power BI tenant: fetches metadata
src/pbi_docs.py - Tenant metadata → Metadata JSON: writes JSON
src/pbi_docs.py - Tenant metadata → Dataflow export: provides metadata
src/pbi_docs.py - Dataflow export → Power BI tenant: fetches dataflows
src/pbi_docs.py - Dataflow export → Dataflow JSON files: writes JSON
src/pbi_docs.py - Tenant metadata → Dedicated dataset details: provides metadata
src/pbi_docs.py - Dedicated dataset details → DAX Studio CLI: runs DAX queries
src/pbi_docs.py - Dedicated dataset details → Dataset detail CSVs: writes CSVs
README.md - Tenant metadata → PRO PBIX export: provides metadata
src/pbi_docs.py - PRO PBIX export → Power BI tenant: exports reports
src/pbi_docs.py - PRO PBIX export → Exported PBIX files: writes PBIX
src/pbi_docs.py - Exported PBIX files → Local model extraction: opens for extraction
- Local model extraction → Desktop connection handling: uses connection handling
src/pbi_docs_pbix_local.py - Desktop connection handling → Power BI Desktop: opens and connects
src/pbi_docs_pbix_local.py - Local model extraction → DAX Studio CLI: runs DAX queries
src/pbi_docs_pbix_local.py - Local model extraction → Dataset detail CSVs: writes CSVs
README.md - Dataset detail CSVs → Word documentation generator: provides extracted data
- Word documentation generator → DOCX documentation: writes DOCX
README.md