Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

pbix as code

I have recently started using PowerBI as an embedded analytics tool for my company. I really like M and DAX - both are very powerful and tie together concepts from SQL and functional programming. Ultimately it seems like when I use PowerBI desktop, what is essentially made is a zip file containing metadata and data.

 

I am a developer, so as much as pointing and clicking is great for learning the concepts, I ultimately would love to just have a project with .m and .dax files (and whatever other metadata is necessary) that I can check into git, etc. Maintaining pbix files is a bit of a nightmare, and also behaves unlike any other code in our system.

 

Even one step further, being able to programmatically generate and synchronize data sets with the PowerBI api would really bring our integration to the next level.

 

Has anyone attempted to do this, or knows if this is even possible?

1 REPLY 1
PhilipTreacy
Super User
Super User

Hi @Anonymous 

I've never tried it.  This article may give you some pointers on the structure of the PBIX files

https://bengribaudo.com/blog/2020/04/22/5198/data-mashup-binary-stream

Phil


If I answered your question please mark my post as the solution.
If my answer helped solve your problem, give it a kudos by clicking on the Thumbs Up.



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.