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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
MrDeg
Frequent Visitor

Where to store my personal library of custom functions

Hi, 

 

Is there a way to easily store and mantain the custom functions that I'm building?

I'm thinking on a library of "personal" M functions that I can update as needed (add new function, modify existing function) and pass from one project to another.

 

thank you in advance,

 

P.s.: Some background: I'm from VBA, I used to keep all my custom functions in some modules (each module was a theme from my library e.g.: "Strings Manipulation", "Arrays","Maths"). every time I created a new project I transferred the modules to the new workbook (with my "Transfer Library" function that transfers the modules) and I was good to go.

 

1 ACCEPTED SOLUTION
v-stephen-msft
Community Support
Community Support

Hi @MrDeg ,

 

I think you can create report templates.

Power BI report templates contain the following information from the report from which they were generated:

  • Report pages, visuals, and other visual elements
  • The data model definition, including the schema, relationships, measures, and other model definition artifacts
  • All query definitions, such as queries, Query Parameters, and other query elements

 

Reference: Create and use report templates in Power BI Desktop

 

Hope to help you.

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
ChrisCB
Regular Visitor

@v-stephen-msft

No offense but that's an extremely poor solution. No version control, no diff, no lint, and its even a hassle for reusability. One should be able to start a blank project, import some version controlled text files and move on with their lives.

 

This being for M and DAX code specifically, but lets be honest, everything inside PBI is likely in some xml schema or another, there's no reason to limit code/visualization reuse to literal PBI template files. What is this, a circa 1998 excel macro library?

v-stephen-msft
Community Support
Community Support

Hi @MrDeg ,

 

I think you can create report templates.

Power BI report templates contain the following information from the report from which they were generated:

  • Report pages, visuals, and other visual elements
  • The data model definition, including the schema, relationships, measures, and other model definition artifacts
  • All query definitions, such as queries, Query Parameters, and other query elements

 

Reference: Create and use report templates in Power BI Desktop

 

Hope to help you.

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors
Top Kudoed Authors