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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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