Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>PBI DocumentNew to Visual Studio Code? Get it now.
PBI Document

PBI Document

Data Analyst Tools

|
248 installs
| (0) | Free
Easily document your Power BI Template (pbit) models.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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:

  1. Open the .pbix file in Power BI Desktop.
  2. Click on "File" in the menu bar.
  3. Select "Save As".
  4. In the save dialog, select "Power BI Template (*.pbit)" in the "Save as type" field.
  5. 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

  1. Download the .vsix file from releases
  2. Open VS Code
  3. Go to Extensions (Ctrl+Shift+X)
  4. Click on "..." (More Actions)
  5. Select "Install from VSIX..."
  6. Choose the downloaded file

Usage

  1. Press Ctrl+Shift+P
  2. Type "Generate pbit Documentation"
  3. Select your .pbit file

Requirements

  • Visual Studio Code 1.96.0+
  • Power BI Desktop (for .pbit file creation)

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Push to the branch
  5. Open a Pull Request

License

Released under the MIT License

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft