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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

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 carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.