Create and manage a Power BI Desktop project (.pbip)
This article explains what a Power BI Project (.pbip) is, the files and folders it creates, and why you would use one, including source control and CI/CD. It covers enabling the preview feature, choosing between TMSL and TMDL, saving a report as a project, and checking that it has been saved as one.
What a Power BI Project is
A Power BI Project (.pbip) stores your work, with the report and semantic model item definitions, as separate text files in a folder structure.
- The semantic model and report are saved in folders called [projectname].SemanticModel and [projectname].Report.
- There is also a [projectname].pbip file, which points to the report folder.
- There is also a .gitignore file, which tracks files that Git should ignore.
Why use a Power BI Project
A Power BI Project allows you to:
- use source control such as Git to track version history, compare revisions, and revert to previous versions;
- edit the definition files in Notepad or Visual Studio Code. VS Code can integrate with Git;
- use Tabular Model Scripting Language (TMSL) to make changes to your items. This can be used in Tabular Editor; and
- use it in a Continuous Integration and Continuous Delivery (CI/CD) system.
Enabling Power BI Projects
This had previously been in preview. If you have an older version of Power BI Desktop, to enable this feature:
- In Power BI Desktop, go to File – Options and settings – Options – Preview features.
- Check Power BI Project (.pbip) save option.
TMSL and TMDL
By default, this used to store the semantic model in Tabular Model Scripting Language (TMSL).
You could also enable Store semantic model using TMDL format. Tabular Model Definition Language (TMDL) is a more human-friendly format, which is more readable and more easily editable.
In modern version of Power BI, saving a file as a Power BI Project would store it in TMDL Format.
Exam tip
Distinguish the two formats. TMSL is the default format for the semantic model in a Power BI Project, while TMDL is a more human-friendly format which is more readable and more easily editable.
Saving a report as a project
To save a project as a .pbip:
- Go to File – Save As.
- Change the Save as type from Power BI file (*.pbix) to Power BI project files (*.pbip).
Checking that the report is a project
When you have done so, the title bar shows (Power BI Project). If you click on the title bar, you will see the report and semantic model links and display names. In modern versions of Power BI Desktop, you would also have the option to open it in Visual Studio Code.
You can then upload the project to a Git branch.
Continue studying DP-600
This article covers Create and manage a Power BI Desktop project (.pbip), part of the Maintain the analytics development lifecycle section of the DP-600 study guide.
Related articles