<?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 Parameterized data source (Azure Databricks) connection with the powerBI. in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Parameterized-data-source-Azure-Databricks-connection-with-the/m-p/4231478#M57719</link>
    <description>&lt;P&gt;Hello Team,&lt;BR /&gt;Hope every one is doing great!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am finding a way to parameterized multiple connnections(dev, test, stage, prod) of Azure databricks with the power bi desktop, I found we can set the parameter for sql server and after that user can have the dropdown option while choosing the connection(server and database), but its not working same when we choose the Azure Databricks connection.&lt;BR /&gt;Can team help me resolving/ guilding on this scenario.&lt;BR /&gt;Also, Is there possibility to make SQL Query (Direct Query) and power query parameterized?&lt;BR /&gt;&lt;BR /&gt;Thank You&lt;/P&gt;</description>
    <pubDate>Mon, 07 Oct 2024 09:25:36 GMT</pubDate>
    <dc:creator>Dev_003</dc:creator>
    <dc:date>2024-10-07T09:25:36Z</dc:date>
    <item>
      <title>Parameterized data source (Azure Databricks) connection with the powerBI.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Parameterized-data-source-Azure-Databricks-connection-with-the/m-p/4231478#M57719</link>
      <description>&lt;P&gt;Hello Team,&lt;BR /&gt;Hope every one is doing great!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am finding a way to parameterized multiple connnections(dev, test, stage, prod) of Azure databricks with the power bi desktop, I found we can set the parameter for sql server and after that user can have the dropdown option while choosing the connection(server and database), but its not working same when we choose the Azure Databricks connection.&lt;BR /&gt;Can team help me resolving/ guilding on this scenario.&lt;BR /&gt;Also, Is there possibility to make SQL Query (Direct Query) and power query parameterized?&lt;BR /&gt;&lt;BR /&gt;Thank You&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2024 09:25:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Parameterized-data-source-Azure-Databricks-connection-with-the/m-p/4231478#M57719</guid>
      <dc:creator>Dev_003</dc:creator>
      <dc:date>2024-10-07T09:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Parameterized data source (Azure Databricks) connection with the powerBI.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Parameterized-data-source-Azure-Databricks-connection-with-the/m-p/4232628#M57730</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/821182"&gt;@Dev_003&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can refer the following links to get it by creating the &lt;A href="https://learn.microsoft.com/en-us/power-query/power-query-query-parameters" target="_self"&gt;query parameter&lt;/A&gt;:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/Changing-Data-Source/td-p/497753" target="_blank"&gt;Solved: Changing Data Source - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vyiruanmsft_0-1728351585014.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1179205iD04C7483FB2D59ED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vyiruanmsft_0-1728351585014.png" alt="vyiruanmsft_0-1728351585014.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blog.gbrueckl.at/2019/03/using-power-bi-desktop-direct-query-with-parameters/" target="_blank"&gt;Using Power BI Desktop Direct Query with Parameters&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vyiruanmsft_1-1728351744193.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1179206i52C5626A23623FDF/image-size/large?v=v2&amp;amp;px=999" role="button" title="vyiruanmsft_1-1728351744193.png" alt="vyiruanmsft_1-1728351744193.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2024 01:43:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Parameterized-data-source-Azure-Databricks-connection-with-the/m-p/4232628#M57730</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-10-08T01:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: Parameterized data source (Azure Databricks) connection with the powerBI.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Parameterized-data-source-Azure-Databricks-connection-with-the/m-p/4234876#M57758</link>
      <description>&lt;P&gt;Thank You&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;for the explanation, in case of Azure Databricks data source connection parameter i have created but it has to be change manually in the power bi service by admin to point to different environment.&lt;BR /&gt;&lt;BR /&gt;I still have doubt regarding the native query parameterization, it will be really appreciable if this doubt resolves.&lt;BR /&gt;&lt;BR /&gt;Here is the scenario, i have written power query mentioned below, where i have hardcoded the&amp;nbsp;Study_ID&amp;nbsp; in the where clause, but in production/other environments, it should be parameterised and the studyid comes as the query parameter from the web application where the power bi report is embedded. How this issue be resolved in secure manner.&lt;BR /&gt;Catalog, Host, HttpPath is parameterised one.&lt;BR /&gt;&lt;BR /&gt;= Value.NativeQuery(&lt;BR /&gt;Databricks.Catalogs(Host, HttpPath, [Catalog=Catalog, Database=null, EnableAutomaticProxyDiscovery=null]){[Name=Catalog, Kind="Database"]}[Data],&lt;BR /&gt;"SELECT rs.ID, " &amp;amp;&lt;BR /&gt;"rs.Name AS siteName, " &amp;amp;&lt;BR /&gt;"sub.SubjectID, " &amp;amp;&lt;BR /&gt;"sub.SubjectIdentifier, " &amp;amp;&lt;BR /&gt;"subStatus.Status_ID, " &amp;amp;&lt;BR /&gt;"subStatus.Name AS StatusName, " &amp;amp;&lt;BR /&gt;"sub.Study_ID " &amp;amp;&lt;BR /&gt;"FROM " &amp;amp; Catalog &amp;amp; "." &amp;amp; Database &amp;amp; ".instance__subject sub " &amp;amp;&lt;BR /&gt;"JOIN " &amp;amp; Catalog &amp;amp; "." &amp;amp; Database &amp;amp; ".instance__status subStatus " &amp;amp;&lt;BR /&gt;"ON sub.Status_ID = subStatus.Status_ID " &amp;amp;&lt;BR /&gt;"JOIN " &amp;amp; Catalog &amp;amp; "." &amp;amp; Database &amp;amp; ".instance__site rs " &amp;amp;&lt;BR /&gt;"ON sub.Site_ID = rs.Site_ID " &amp;amp;&lt;BR /&gt;"WHERE sub.Disabled = FALSE " &amp;amp;&lt;BR /&gt;"AND sub.Study_ID = 111111",&lt;BR /&gt;null,&lt;BR /&gt;[EnableFolding=true]&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 08:24:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Parameterized-data-source-Azure-Databricks-connection-with-the/m-p/4234876#M57758</guid>
      <dc:creator>Dev_003</dc:creator>
      <dc:date>2024-10-09T08:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Parameterized data source (Azure Databricks) connection with the powerBI.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Parameterized-data-source-Azure-Databricks-connection-with-the/m-p/4238554#M57792</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/821182"&gt;@Dev_003&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can follow the steps below to get it:&lt;/P&gt;
&lt;P&gt;1. Create a query parameter '&lt;EM&gt;&lt;STRONG&gt;P_StudyID&lt;/STRONG&gt;&lt;/EM&gt;'&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vyiruanmsft_1-1728637389653.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1181670iED324D1FB550CFAA/image-size/large?v=v2&amp;amp;px=999" role="button" title="vyiruanmsft_1-1728637389653.png" alt="vyiruanmsft_1-1728637389653.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2. Update the above codes as below: you can refer &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/Include-Parameters-within-Power-BI-to-Query-a-SQL-Data-Source/m-p/951355" target="_self"&gt;this thread&lt;/A&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;= Value.NativeQuery(
Databricks.Catalogs(Host, HttpPath, [Catalog=Catalog, Database=null, EnableAutomaticProxyDiscovery=null]){[Name=Catalog, Kind="Database"]}[Data],
"SELECT rs.ID, " &amp;amp;
"rs.Name AS siteName, " &amp;amp;
"sub.SubjectID, " &amp;amp;
"sub.SubjectIdentifier, " &amp;amp;
"subStatus.Status_ID, " &amp;amp;
"subStatus.Name AS StatusName, " &amp;amp;
"sub.Study_ID " &amp;amp;
"FROM " &amp;amp; Catalog &amp;amp; "." &amp;amp; Database &amp;amp; ".instance__subject sub " &amp;amp;
"JOIN " &amp;amp; Catalog &amp;amp; "." &amp;amp; Database &amp;amp; ".instance__status subStatus " &amp;amp;
"ON sub.Status_ID = subStatus.Status_ID " &amp;amp;
"JOIN " &amp;amp; Catalog &amp;amp; "." &amp;amp; Database &amp;amp; ".instance__site rs " &amp;amp;
"ON sub.Site_ID = rs.Site_ID " &amp;amp;
"WHERE sub.Disabled = FALSE " &amp;amp;
"AND sub.Study_ID  ="&amp;amp;P_StudyID&amp;amp;" ",
null,
[EnableFolding=true]
)&lt;/LI-CODE&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 09:03:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Parameterized-data-source-Azure-Databricks-connection-with-the/m-p/4238554#M57792</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-10-11T09:03:24Z</dc:date>
    </item>
  </channel>
</rss>

