<?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: Dataflow and PowerBI Gateway - Sourcing data dynamically in Dataflow</title>
    <link>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-and-PowerBI-Gateway-Sourcing-data-dynamically/m-p/3696627#M1925</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/223"&gt;@miguel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As long as this functionality works with the on-premises data gateway, it sounds viable.&lt;/P&gt;&lt;P&gt;I will look into this option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 13 Feb 2024 14:38:44 GMT</pubDate>
    <dc:creator>AndrewWestran</dc:creator>
    <dc:date>2024-02-13T14:38:44Z</dc:date>
    <item>
      <title>Dataflow and PowerBI Gateway - Sourcing data dynamically</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-and-PowerBI-Gateway-Sourcing-data-dynamically/m-p/3650781#M1622</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a Dataflow Gen2 which is sourcing data from an on-premises SQL Server via PowerBI Gateway.&lt;/P&gt;&lt;P&gt;The server contains many databases, each representing a retail POS.&lt;/P&gt;&lt;P&gt;These databases may change from day to day, i.e., there may be new databases today that were not there yesterday, without notice.&lt;/P&gt;&lt;P&gt;The Dataflow allows me to access the server in a fixed manner (nothing changes in this regard), but I need to be able to look up the databases to be queried and access them dynamically.&lt;/P&gt;&lt;P&gt;The tables in question will be consistent between the databases.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on what I have seen so far, the Dataflow does not support this level of flexibility.&lt;/P&gt;&lt;P&gt;Is there something I am missing in the capabilities of the tool?&lt;/P&gt;&lt;P&gt;I can obviously push the data from the source environment and pre-consolidate to solve this issue, however, I was hoping to solve this issue from the Fabric environment due to constraints on the source side.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts and comments are appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2024 06:07:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-and-PowerBI-Gateway-Sourcing-data-dynamically/m-p/3650781#M1622</guid>
      <dc:creator>AndrewWestran</dc:creator>
      <dc:date>2024-01-22T06:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dataflow and PowerBI Gateway - Sourcing data dynamically</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-and-PowerBI-Gateway-Sourcing-data-dynamically/m-p/3654175#M1640</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/606483"&gt;@AndrewWestran&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for using Microsoft Fabric Community.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;At this time, we are reaching out to the internal team to get some help on this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We will update you once we hear back from them.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Appreciate your patience.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 13:43:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-and-PowerBI-Gateway-Sourcing-data-dynamically/m-p/3654175#M1640</guid>
      <dc:creator>v-cboorla-msft</dc:creator>
      <dc:date>2024-01-23T13:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dataflow and PowerBI Gateway - Sourcing data dynamically</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-and-PowerBI-Gateway-Sourcing-data-dynamically/m-p/3654935#M1645</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AndrewWestran_0-1706037196828.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1030485i1EBFB2B2CBED0735/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AndrewWestran_0-1706037196828.png" alt="AndrewWestran_0-1706037196828.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is good news for me. Depending on the release date, of course. Sooner would be better...&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;&lt;P&gt;(I suspect a Pipeline will facilitate the dynamic sourcing more easily than the Dataflow.)&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 19:16:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-and-PowerBI-Gateway-Sourcing-data-dynamically/m-p/3654935#M1645</guid>
      <dc:creator>AndrewWestran</dc:creator>
      <dc:date>2024-01-23T19:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dataflow and PowerBI Gateway - Sourcing data dynamically</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-and-PowerBI-Gateway-Sourcing-data-dynamically/m-p/3659596#M1664</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/606483"&gt;@AndrewWestran&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The internal team has confirmed that, there is no dynamic ability to switch between different databases today. The connections themselves must be validated and are thus static for this reason.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps. Please do let us know if you have any further questions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 09:32:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-and-PowerBI-Gateway-Sourcing-data-dynamically/m-p/3659596#M1664</guid>
      <dc:creator>v-cboorla-msft</dc:creator>
      <dc:date>2024-01-25T09:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dataflow and PowerBI Gateway - Sourcing data dynamically</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-and-PowerBI-Gateway-Sourcing-data-dynamically/m-p/3659856#M1665</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/608020"&gt;@v-cboorla-msft&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate that the&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;connection&lt;/STRONG&gt;&lt;/EM&gt; would need to be validated and static. However, I would hope that database selection within the context of a static connection could be dynamic. Privileges from the established connection would apply.&lt;/P&gt;&lt;P&gt;I also appreciate that this would introduce levels of complexity to the static mechanisms of the Dataflow which are hard-wired to a particular table for example, to which the transformation steps would be applied.&lt;/P&gt;&lt;P&gt;It feels like this would be an ideal application of the Notebook capabilities, for example, to select a data source and manage the data definition, sourcing, and push to the final destination in code, rather than using a graphical tool.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 10:17:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-and-PowerBI-Gateway-Sourcing-data-dynamically/m-p/3659856#M1665</guid>
      <dc:creator>AndrewWestran</dc:creator>
      <dc:date>2024-01-25T10:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Dataflow and PowerBI Gateway - Sourcing data dynamically</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-and-PowerBI-Gateway-Sourcing-data-dynamically/m-p/3671582#M1729</link>
      <description>&lt;P&gt;Can you migrate some of the data to a lakehouse? Perhaps an aggregate version of the source data? Storage cost is very inexpensive from what I've seen.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 01:19:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-and-PowerBI-Gateway-Sourcing-data-dynamically/m-p/3671582#M1729</guid>
      <dc:creator>Element115</dc:creator>
      <dc:date>2024-02-01T01:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dataflow and PowerBI Gateway - Sourcing data dynamically</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-and-PowerBI-Gateway-Sourcing-data-dynamically/m-p/3672185#M1741</link>
      <description>&lt;P&gt;Thanks for your comment,&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/268213"&gt;@Element115&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;To manage this migration to the lakehouse without the dynamic DB access capability, we would need to move the functionality to the source system, e.g., export the data to Azure Blob storage and then import it into the lakehouse.&lt;/P&gt;&lt;P&gt;This is our only alternative at this point and is unnecessarily complicated, where Fabric touts a unified toolset, which falls short in this scenario.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 06:43:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-and-PowerBI-Gateway-Sourcing-data-dynamically/m-p/3672185#M1741</guid>
      <dc:creator>AndrewWestran</dc:creator>
      <dc:date>2024-02-01T06:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dataflow and PowerBI Gateway - Sourcing data dynamically</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-and-PowerBI-Gateway-Sourcing-data-dynamically/m-p/3696041#M1907</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/606483"&gt;@AndrewWestran&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet. In case if you have any resolution please do share that same with the community as it can be helpful to others.&lt;BR /&gt;Otherwise, will respond back with the more details and we will try to help.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 09:50:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-and-PowerBI-Gateway-Sourcing-data-dynamically/m-p/3696041#M1907</guid>
      <dc:creator>v-cboorla-msft</dc:creator>
      <dc:date>2024-02-13T09:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dataflow and PowerBI Gateway - Sourcing data dynamically</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-and-PowerBI-Gateway-Sourcing-data-dynamically/m-p/3696230#M1911</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/608020"&gt;@v-cboorla-msft&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have responded to all replies on this thread.&lt;/P&gt;&lt;P&gt;Please let me know if there is a specific comment that I have missed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 11:07:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-and-PowerBI-Gateway-Sourcing-data-dynamically/m-p/3696230#M1911</guid>
      <dc:creator>AndrewWestran</dc:creator>
      <dc:date>2024-02-13T11:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dataflow and PowerBI Gateway - Sourcing data dynamically</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-and-PowerBI-Gateway-Sourcing-data-dynamically/m-p/3696348#M1914</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/606483"&gt;@AndrewWestran&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Apologies for my previous comment. I just wanted to check whether your query got resolved. If no please let us know.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Otherwise, will respond back with the more details and we will try to help.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 12:19:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-and-PowerBI-Gateway-Sourcing-data-dynamically/m-p/3696348#M1914</guid>
      <dc:creator>v-cboorla-msft</dc:creator>
      <dc:date>2024-02-13T12:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: Dataflow and PowerBI Gateway - Sourcing data dynamically</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-and-PowerBI-Gateway-Sourcing-data-dynamically/m-p/3696360#M1915</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/608020"&gt;@v-cboorla-msft&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No problem &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This issue is not resolved.&lt;/P&gt;&lt;P&gt;I would be interested if this functionality is possibly supported by Notebooks/PySpark or other features of the Fabric environment. Perhaps I have missed something.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 12:24:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-and-PowerBI-Gateway-Sourcing-data-dynamically/m-p/3696360#M1915</guid>
      <dc:creator>AndrewWestran</dc:creator>
      <dc:date>2024-02-13T12:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: Dataflow and PowerBI Gateway - Sourcing data dynamically</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-and-PowerBI-Gateway-Sourcing-data-dynamically/m-p/3696605#M1922</link>
      <description>&lt;P&gt;If you're trying to connect to a single source that can have many databases (such as SQL Server), then you can use the SQL Server connector without defining a database to connect to and then define your own M query logic as to what table you'd like to query from which specific database inside of the server.&lt;/P&gt;
&lt;P&gt;Dataflows is flexible enough in this matter, but it also relies on your own requirements and the logic that you wish to apply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The SQL Server connector without defining the database will use the &lt;A href="https://learn.microsoft.com/en-us/powerquery-m/sql-databases" target="_self"&gt;Sql.Databases function&lt;/A&gt;. If you prefer to write your own M code and more of a code-first approach like in a notebook you can also take that route with Dataflows.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 14:25:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-and-PowerBI-Gateway-Sourcing-data-dynamically/m-p/3696605#M1922</guid>
      <dc:creator>miguel</dc:creator>
      <dc:date>2024-02-13T14:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dataflow and PowerBI Gateway - Sourcing data dynamically</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-and-PowerBI-Gateway-Sourcing-data-dynamically/m-p/3696627#M1925</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/223"&gt;@miguel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As long as this functionality works with the on-premises data gateway, it sounds viable.&lt;/P&gt;&lt;P&gt;I will look into this option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 14:38:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-and-PowerBI-Gateway-Sourcing-data-dynamically/m-p/3696627#M1925</guid>
      <dc:creator>AndrewWestran</dc:creator>
      <dc:date>2024-02-13T14:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dataflow and PowerBI Gateway - Sourcing data dynamically</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-and-PowerBI-Gateway-Sourcing-data-dynamically/m-p/3696858#M1928</link>
      <description>&lt;P&gt;I was re-reading your original post and something occurred to me... have you tried to maintain a table with meta data, that is, a table that will keep track of all the DB servers and DB names as they come and go?&amp;nbsp; This would allow you to create a query that connects to the DB containing this meta data table, and using that table, you can in M select any or all of your databases and thus ingest their data.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 16:07:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-and-PowerBI-Gateway-Sourcing-data-dynamically/m-p/3696858#M1928</guid>
      <dc:creator>Element115</dc:creator>
      <dc:date>2024-02-13T16:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dataflow and PowerBI Gateway - Sourcing data dynamically</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-and-PowerBI-Gateway-Sourcing-data-dynamically/m-p/3698006#M1935</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/268213"&gt;@Element115&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I gather that I will be able to use the M "sql.databases" function to acquire the details of the databases that I need to access, so no additional metadata tables should be necessary.&lt;/P&gt;&lt;P&gt;I do appreciate the time and thought you have taken to respond to this query. I am open to any further comments you may have to offer. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 06:04:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-and-PowerBI-Gateway-Sourcing-data-dynamically/m-p/3698006#M1935</guid>
      <dc:creator>AndrewWestran</dc:creator>
      <dc:date>2024-02-14T06:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dataflow and PowerBI Gateway - Sourcing data dynamically</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-and-PowerBI-Gateway-Sourcing-data-dynamically/m-p/3699459#M1940</link>
      <description>&lt;P&gt;Interesting!&amp;nbsp; You're right, that should do the trick.&amp;nbsp; I was not aware M had such a function.&amp;nbsp; Pretty nifty.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 17:30:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-and-PowerBI-Gateway-Sourcing-data-dynamically/m-p/3699459#M1940</guid>
      <dc:creator>Element115</dc:creator>
      <dc:date>2024-02-14T17:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dataflow and PowerBI Gateway - Sourcing data dynamically</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-and-PowerBI-Gateway-Sourcing-data-dynamically/m-p/3700684#M1970</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/223"&gt;@miguel&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/268213"&gt;@Element115&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/608020"&gt;@v-cboorla-msft&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have built M code to produce the effect that I am trying to achieve as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;let&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; // Function to query top 100 rows from a table in a specific database&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; GetTableFromDatabase = (server as text, database as text) as any =&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; let&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Source = try Sql.Database(server, database) otherwise null,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MyTable = if Source &amp;lt;&amp;gt; null then Source{[Schema="dbo",Item="MyTable"]}[Data] else null,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Top100Rows = if MyTable &amp;lt;&amp;gt; null then Table.FirstN(MyTable, 100) else null&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; in&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Top100Rows,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; // Get list of databases from the SQL Server&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; GetDatabaseList = Sql.Databases("MyServer"),&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; DatabaseNames = Table.SelectColumns(GetDatabaseList,{"Name"}),&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;//Iterate through the list of databases, accumulating 100 rows of data from MyTable from each DB into a list&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; LoadDataFromAllDatabases = List.Accumulate(&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DatabaseNames[Name],&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {},&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (state, currentDatabase) =&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; let&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DatabaseName = currentDatabase,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TableData = GetTableFromDatabase("MyServer", DatabaseName),&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NewState = if TableData &amp;lt;&amp;gt; null then state &amp;amp; {TableData} else state&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; in&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NewState&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; )&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;in&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; LoadDataFromAllDatabases&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;This is working for me up to a point, but I am having some issues with credentials which I am working on resolving with the relevant teams at my organisation.&lt;/DIV&gt;&lt;DIV&gt;So far, this approach seems to be viable and appears to be functioning fine in conjunction with the Gateway to the on-premises data.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Once I have the credential issues resolved, I will follow up with confirmation of success and/or any modifications required for the final solution.&lt;/DIV&gt;&lt;DIV&gt;Naturally, the code above has been masked and pruned to hide specific details for my implementation, but the code is generic and would work as a framework for any similar requirement.&lt;/DIV&gt;&lt;DIV&gt;Thanks for all of the assistance and guidance thus far.&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 15 Feb 2024 17:31:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-and-PowerBI-Gateway-Sourcing-data-dynamically/m-p/3700684#M1970</guid>
      <dc:creator>AndrewWestran</dc:creator>
      <dc:date>2024-02-15T17:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dataflow and PowerBI Gateway - Sourcing data dynamically</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-and-PowerBI-Gateway-Sourcing-data-dynamically/m-p/3701455#M1977</link>
      <description>&lt;P&gt;I don't think that there's a need to use&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;Sql.Database when you're already querying and gaining access to all databases from the server with Sql.Databases. You're introducing the issue of unbinded connections when you're using new data source functions to the mix - if you just leverage the tree view given by Sql.Databases you should be able to achieve the same without incurring into accessing new data sources (and then have the credentials issue that you're seeing).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 14:00:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-and-PowerBI-Gateway-Sourcing-data-dynamically/m-p/3701455#M1977</guid>
      <dc:creator>miguel</dc:creator>
      <dc:date>2024-02-15T14:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: Dataflow and PowerBI Gateway - Sourcing data dynamically</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-and-PowerBI-Gateway-Sourcing-data-dynamically/m-p/3701495#M1981</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/223"&gt;@miguel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the Sql.Database object since I will need to address 2,000 databases containing the same table name (MyTable) to extract the data from these. Will using the tree view not imply me having to manually select all 2,000 tables to achieve the same effect?&lt;/P&gt;&lt;P&gt;Perhaps I am not clear on the tree view functionality that you are referring to here.&lt;/P&gt;&lt;P&gt;Are you perhaps suggesting using navigation code from the Sql.Databases output to draw the second level detail in stead of Sql.Database with unbound connections as you say?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 14:19:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-and-PowerBI-Gateway-Sourcing-data-dynamically/m-p/3701495#M1981</guid>
      <dc:creator>AndrewWestran</dc:creator>
      <dc:date>2024-02-15T14:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Dataflow and PowerBI Gateway - Sourcing data dynamically</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-and-PowerBI-Gateway-Sourcing-data-dynamically/m-p/3701577#M1982</link>
      <description>&lt;P&gt;is not really an object, but rather a data source function. Every time that you use that function it has the potential to require a new linkage of a connection to its data source path.&lt;BR /&gt;Are those databases in the same server? or are you trying to access different servers?&lt;/P&gt;
&lt;P&gt;If they are in the same server, have you considered using Sql.Databases instead and creating a function that explores the databases in that server and then extracts the data from each table within that Server and then combines them as you see fit?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 14:44:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Dataflow-and-PowerBI-Gateway-Sourcing-data-dynamically/m-p/3701577#M1982</guid>
      <dc:creator>miguel</dc:creator>
      <dc:date>2024-02-15T14:44:33Z</dc:date>
    </item>
  </channel>
</rss>

