splor-mg / notas

Base de conhecimento
https://splor-mg.github.io/notas/main
0 stars 0 forks source link

Pesquisar sobre estratégias de versionamento e colaboração com PowerBI #22

Open fjuniorr opened 11 months ago

fjuniorr commented 11 months ago

Does it make sense to version control PowerBI with git?

PowerBI uses a binary file format (.pbix) for its projects. Git, as a version control system, is designed to work well with text-based files, where it can compare and track changes line-by-line. It's less efficient and effective with binary files, since changes result in a whole new file version, leading to rapid repository growth and making it challenging to understand changes between versions.

However, versioning is still important in PowerBI projects for several reasons, such as:

  1. Collaboration: Multiple analysts might be working on the same reports and need a way to manage changes.
  2. Auditability: You may need to understand who made a change, when, and why.
  3. Reproducibility: If a problem is found, you may need to go back to a previous version of your report.

If you want to use Git for version control of PowerBI projects, one possible approach is to use PowerBI's "Template" feature, which allows you to save your work in a more text-friendly format (.pbit) that consists of JSON structures. These files can be tracked in Git more effectively than binary .pbix files. Please note that this does not include the data used in the PowerBI report, so you need to make sure your data sources are also appropriately version controlled or managed.

For better binary version control, you can consider using a data version control system that can handle binary files better, or you could use PowerBI's built-in versioning if you are using PowerBI service online, which has some basic version history features.

Remember, no solution is perfect and you have to consider trade-offs based on your team size, the complexity of your reports, and the rate at which your reports are changing.

-- ChatGPT

Links

labanca commented 10 months ago

Versionamento feito por diff de metadados extraídos do arquivo .pbix por meio da ferramenta pbi-tools.

Testado em https://github.com/splor-mg/painel-admin-obz/commit/6fb988ac001ac9d54b6e0e710293d26597ac7628

fjuniorr commented 9 months ago

Alguns links relevantes: