This application is an automated tool to convert Microsoft Power BI PBIX files into PBIP project files. PBIP (Power BI Project) format stores reports and semantic models as human-readable files suitable for version control.
Power BI Desktop must be installed on your system. Download from: https://powerbi.microsoft.com/desktop/
The PBIP save option is a preview feature that must be enabled:
- Open Power BI Desktop
- Go to File > Options and settings > Options
- Select Preview features
- Check Power BI Project (.pbip) save option
- Restart Power BI Desktop
Install the required Python packages:
pip install -r requirements.txtNavigate to a directory containing PBIX files and run:
python pbix_converter.pyYou can also specify a directory path:
python pbix_converter.py "C:\Path\To\PBIX\Files"The tool will:
- Scan for PBIX files in the directory
- Display found files with sizes
- Prompt you to select which files to convert
- Create a
pbip_output/subfolder with converted projects
==================================================
Power BI PBIX to PBIP Converter
==================================================
Working directory: C:\Reports
Found 3 PBIX file(s):
1. SalesReport.pbix (15.2 MB)
2. InventoryDashboard.pbix (8.7 MB)
3. FinanceMetrics.pbix (22.1 MB)
Options:
[A] Convert all files
[S] Select specific files (enter numbers separated by commas)
[Q] Quit
Your choice: A
For each PBIX file, the converter creates a project folder:
pbip_output/
├── SalesReport/
│ ├── SalesReport.pbip
│ ├── SalesReport.Report/
│ │ ├── definition.pbir
│ │ ├── report.json
│ │ └── ...
│ └── SalesReport.SemanticModel/
│ ├── definition.pbism
│ ├── definition/
│ │ └── (TMDL files)
│ └── ...
└── ...
- Do not use mouse/keyboard during conversion - the tool automates Power BI Desktop's UI
- Only one PBIX file is converted at a time
- Close Power BI Desktop before starting
- Conversion time depends on file size and complexity
Ensure Power BI Desktop is installed in a standard location or add it to your PATH.
Enable the preview feature as described in Prerequisites.
- Ensure no other Power BI files are open
- Check that the PBIX file is not corrupted
- Verify sufficient disk space for output