PBI Document Generator
VS Code extension to automatically generate documentation from Power BI Template (.pbit) files.
How to Generate a .pbit File from a .pbix File
This section explains how to generate a .pbit file from a .pbix file.
Steps to save as .pbit:
- Open the .pbix file in Power BI Desktop.
- Click on "File" in the menu bar.
- Select "Save As".
- In the save dialog, select "Power BI Template (*.pbit)" in the "Save as type" field.
- Choose the location where you want to save the file and click "Save".
This will generate a .pbit file, which is a Power BI template that can be reused to create new reports with the same structure and configuration.
Features
- 📄 Extracts and processes DataModelSchema from .pbit files
- 📝 Generates Markdown documentation automatically
- 🔍 Documents tables, relationships, and measures
- 🎨 Clean and organized output format
- 🔄 Handles UTF-16LE encoding
Technical Details
Built with:
- TypeScript
- VS Code Extension API
- adm-zip for PBIT extraction
- Node.js file system operations
Installation
- Download the .vsix file from releases
- Open VS Code
- Go to Extensions (Ctrl+Shift+X)
- Click on "..." (More Actions)
- Select "Install from VSIX..."
- Choose the downloaded file
Usage
- Press
Ctrl+Shift+P
- Type "Generate pbit Documentation"
- Select your .pbit file
Requirements
- Visual Studio Code 1.96.0+
- Power BI Desktop (for .pbit file creation)
Contributing
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Open a Pull Request
License
Released under the MIT License
| |