Version control for Power BI with PBIP files and Git

A file named Sales_v7_final.pbix says that something changed, not what. Real version control starts with saving as a Power BI Project (PBIP): plain text files that Git can track, compare and roll back.

Short answer: in Power BI Desktop, File, Save as, and choose Power BI project (.pbip). The report and the semantic model are saved as folders of plain text files instead of one binary .pbix, so Git can track every change, show you the difference between two versions, and roll one back. Microsoft describes PBIP as source control ready and built for CI/CD; it also works well with a code editor such as VS Code.

A .pbix file saved as "Sales_v7_final.pbix" shows the usual problem: the name says it changed, not what, and nobody can tell which measure moved between v6 and v7.

What does a project look like on disk?

  1. Sales.pbipthe file you open in Power BI Desktop
  2. Sales.Report/the report: pages and visuals as text files
  3. Sales.SemanticModel/the model: tables, measures, relationships as text
  4. .gitignorekeeps local cache files out of Git
A Power BI project in a folder

What does Git give you that a .pbix does not?

QuestionWith .pbix filesWith PBIP in Git
What changed since last week?Open both and compare by eyeA diff of the exact lines
Who changed the margin measure?Ask aroundThe commit history
Undo one change, keep the restNot possibleRevert that commit
Two people editingOne at a timeBranches, then merge

How does it help with an AI agent?

A coding agent like Claude Code works on text files. With a PBIP folder, it can read your measures, suggest a change in one file, and you see the exact diff before you commit. A binary .pbix gives it nothing to read.

What goes wrong?

  • Committing the cache. Keep the .gitignore Power BI writes; local cache files do not belong in Git.
  • Editing files while Desktop has them open. Close Desktop or reload after outside edits.
  • Data in Git. PBIP stores definitions; keep exported data and credentials out of the repository.

Where can you check this?

Where do you start?

Write the project's notes for an agent with a CLAUDE.md for a data repository. For pipelines in Git, see Azure Data Factory with Git and CI/CD.

Keep reading

More from the blog.

Every post

Next

Building this? Say hello.

A question about this post, a pattern you would build differently, or the next thing you want written out: Behnia reads every message.