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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.