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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
abpgupta
Continued Contributor
Continued Contributor

How to share custom functions to other semantic models

Hi All

 

Is there any way to share Custom functions to other dataflows and semantic models? I would like to share some of the common custom functions created via Dataflow in Service.

 

Thanks for inputs.

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

You can copy queries into a text repository or github and paste them into other dataflows. 

 

If you want to go all out you can read here :  Power Query M Primer (Part 25): Extending the Global Environment | Ben Gribaudo

View solution in original post

5 REPLIES 5
collinq
Super User
Super User

Hi @abpgupta ,

 

In addition to @lbendlin answer, I am wondering if you are meaning that you just want to copy the steps from the dataflow?  If so, you can just copy from Advanced Editor.  Or, you could use a template with the functions you want in it and then branch off of that .  If I am being too "simple" then @lbendlin answer will be the way to go.




Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!
Private message me for consulting or training needs.




abpgupta
Continued Contributor
Continued Contributor

I am looking to access Dataflow a library of custom functions and can be used as linked entity in other dataflows or semantic model. With that, I can just do version control of Dataflow instead of individual custom functions. 
For copy as text option, I am already using sharepoint with version history for each function. Problem with that is if I change/enhance function, all users need to copy code again. As linked entity, it should work like Power query native M functions.

Hey @abpgupta ,

 

Thanks for the clarification - if you are wanting versions then usign github like @lbendlin suggested is probably the best way to go.




Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!
Private message me for consulting or training needs.




abpgupta
Continued Contributor
Continued Contributor

Thanks. I am looking for exposing all of them as library with a Dataflow.

lbendlin
Super User
Super User

You can copy queries into a text repository or github and paste them into other dataflows. 

 

If you want to go all out you can read here :  Power Query M Primer (Part 25): Extending the Global Environment | Ben Gribaudo

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

March Power BI Update Carousel

Power BI Community Update - March 2026

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