<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Share a function between dataflows in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Share-a-function-between-dataflows/m-p/1578737#M26989</link>
    <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;HI&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/223883"&gt;@yuvalf&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;If these operations are in the same dataflow, you can try to create a custom function in your dataflow to package the rest API of these calculations and return results. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Then you can invoke this custom function in other entities.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://ssbipolar.com/2018/12/12/custom-functions-in-power-bi-dataflows/" target="_self"&gt;Using Custom Functions in Power BI Dataflows&lt;/A&gt;&amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;If you mean invoke cross dataflow, perhaps you can take a look at computed/linked entities if they suitable for your requirement. (I'm not so sure if custom functions can be used as linked entities)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/transform-model/dataflows/dataflows-premium-features" target="_self"&gt;Premium features of dataflows&lt;/A&gt;&amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Jan 2021 06:35:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-01-04T06:35:32Z</dc:date>
    <item>
      <title>Share a function between dataflows</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Share-a-function-between-dataflows/m-p/1576161#M26968</link>
      <description>&lt;P&gt;I have created a function in dataflow. Can this function be called from other dataflows ?&lt;BR /&gt;I have set of generic functions that seems to be useful in multiple dataflows. I don't want to copy each time the function from one dataflow to the others....instead, I would like to have 1 dataflow that include all these generic functions that can be called from the other dataflows, Is it possible ?&lt;BR /&gt;If not, what is the best practice to have 1 main repository of functions (without to copy it each time into the dataflow)&lt;BR /&gt;Thanks&lt;BR /&gt;Yuval&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Dec 2020 08:07:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Share-a-function-between-dataflows/m-p/1576161#M26968</guid>
      <dc:creator>yuvalf</dc:creator>
      <dc:date>2020-12-31T08:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Share a function between dataflows</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Share-a-function-between-dataflows/m-p/1576673#M26972</link>
      <description>&lt;P&gt;Nice question. Feels like this should go into the Ideas section.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Short answer is no - you cannot share functions across datasets or dataflows.&amp;nbsp; You need to maintain your own function repository (ideally on github) and then copy to your new dataflows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or - concentrate them all in one master dataflow.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you give an example of such a function?&amp;nbsp; Recursive web contents fetching?&lt;/P&gt;</description>
      <pubDate>Thu, 31 Dec 2020 17:20:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Share-a-function-between-dataflows/m-p/1576673#M26972</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-12-31T17:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: Share a function between dataflows</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Share-a-function-between-dataflows/m-p/1577974#M26980</link>
      <description>&lt;P&gt;E.g. - There is a specific KPI in our organization that should be calculated from various sources. This is a complicated KPI formula that should be used by different organization (in which each one has it own dataflow).&lt;BR /&gt;Currently, I am trying to take some work around using the Expression.Evaluate function in which the formula will be stored on shared location that this function will evaluated....not sure if it will work all the way (I read some articles that there are some problems when there is a need to schedule the dataflow)......&lt;/P&gt;</description>
      <pubDate>Sun, 03 Jan 2021 09:25:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Share-a-function-between-dataflows/m-p/1577974#M26980</guid>
      <dc:creator>yuvalf</dc:creator>
      <dc:date>2021-01-03T09:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Share a function between dataflows</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Share-a-function-between-dataflows/m-p/1578737#M26989</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;HI&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/223883"&gt;@yuvalf&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;If these operations are in the same dataflow, you can try to create a custom function in your dataflow to package the rest API of these calculations and return results. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Then you can invoke this custom function in other entities.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://ssbipolar.com/2018/12/12/custom-functions-in-power-bi-dataflows/" target="_self"&gt;Using Custom Functions in Power BI Dataflows&lt;/A&gt;&amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;If you mean invoke cross dataflow, perhaps you can take a look at computed/linked entities if they suitable for your requirement. (I'm not so sure if custom functions can be used as linked entities)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/transform-model/dataflows/dataflows-premium-features" target="_self"&gt;Premium features of dataflows&lt;/A&gt;&amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2021 06:35:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Share-a-function-between-dataflows/m-p/1578737#M26989</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-04T06:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Share a function between dataflows</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Share-a-function-between-dataflows/m-p/1585904#M27087</link>
      <description>&lt;P&gt;Sheng, I know that you can define a custom function in the dataflow - This is not the issue.&lt;/P&gt;&lt;P&gt;What I am looking for is after you create such function in one dataflow how you can "call" it from different dataflow (and not by coping the custom function from one dataflow to the second one).&lt;/P&gt;&lt;P&gt;Looking for a "1 truth of code" that can be shred among multiple dataflows.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 08:15:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Share-a-function-between-dataflows/m-p/1585904#M27087</guid>
      <dc:creator>yuvalf</dc:creator>
      <dc:date>2021-01-07T08:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: Share a function between dataflows</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Share-a-function-between-dataflows/m-p/1585967#M27088</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/223883"&gt;@yuvalf&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;If you mean to create a standalone function in dataflow that can be directly invoked across different dataflows. &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Current power bi dataflows do not support this, perhaps you can submit an idea with this requirement.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;BTW, I think&amp;nbsp;lbendlin&amp;nbsp;'s suggestion&amp;nbsp;should be a choice to indirectly achieve your retirement. You can package your functions externally then you can create new dataflow query tables to invoke these functions.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regads,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 08:43:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Share-a-function-between-dataflows/m-p/1585967#M27088</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-07T08:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Share a function between dataflows</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Share-a-function-between-dataflows/m-p/1586099#M27100</link>
      <description>&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;What do you mean &lt;EM&gt;"&lt;/EM&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;You can package your functions externally"&lt;/EM&gt; &lt;/STRONG&gt;?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 10:00:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Share-a-function-between-dataflows/m-p/1586099#M27100</guid>
      <dc:creator>yuvalf</dc:creator>
      <dc:date>2021-01-07T10:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Share a function between dataflows</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Share-a-function-between-dataflows/m-p/1587398#M27124</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/223883"&gt;@yuvalf&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;These operations were similar to design APIs and deploy them on the web.&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Then you can use a web connector to invoke the API instead of copy specific processing codes into your dataflow every time you used it. (it can be a workaround to use functions across dataflows but they not suitable for your requirements)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 06:59:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Share-a-function-between-dataflows/m-p/1587398#M27124</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-08T06:59:23Z</dc:date>
    </item>
  </channel>
</rss>

