<?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 Dynamically get database name in Power BI in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Dynamically-get-database-name-in-Power-BI/m-p/2563430#M36550</link>
    <description>&lt;P&gt;I would like to ask how to get database name dynamically and add it as a new column in the table.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jun 2022 09:11:27 GMT</pubDate>
    <dc:creator>Analitika</dc:creator>
    <dc:date>2022-06-07T09:11:27Z</dc:date>
    <item>
      <title>Dynamically get database name in Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamically-get-database-name-in-Power-BI/m-p/2563430#M36550</link>
      <description>&lt;P&gt;I would like to ask how to get database name dynamically and add it as a new column in the table.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 09:11:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamically-get-database-name-in-Power-BI/m-p/2563430#M36550</guid>
      <dc:creator>Analitika</dc:creator>
      <dc:date>2022-06-07T09:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically get database name in Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamically-get-database-name-in-Power-BI/m-p/2566425#M36577</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;If you use parameter to store the Servername and DBname then you can refer the parameter in the new column to get the database name.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Hariharan_R_0-1654687994114.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/728763iE3E1A2E25472437B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Hariharan_R_0-1654687994114.png" alt="Hariharan_R_0-1654687994114.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you use SQL server then you can use below script in new query and get the database name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;let&lt;BR /&gt;Source = Sql.Database("ServerName", "AdventureWorks2019", [Query="SELECT DB_NAME()"])&lt;BR /&gt;in&lt;BR /&gt;Source&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Hari&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2022 11:34:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamically-get-database-name-in-Power-BI/m-p/2566425#M36577</guid>
      <dc:creator>Hariharan_R</dc:creator>
      <dc:date>2022-06-08T11:34:29Z</dc:date>
    </item>
  </channel>
</rss>

