<?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 Dynamic connection based on selection on slicer in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Dynamic-connection-based-on-selection-on-slicer/m-p/2730092#M38201</link>
    <description>&lt;P&gt;Hello Folks,&lt;/P&gt;&lt;P&gt;I Need help to achieve below Requirement.&lt;/P&gt;&lt;P&gt;We do have different region data in different databases and we do have all connection, Username,password details on the metadata database.&lt;/P&gt;&lt;P&gt;The requirement is&lt;/P&gt;&lt;P&gt;In slicer (Region) if we select US than I will query from metadata and get the connection details and get connected to that Us database and fetch the us related data.&lt;/P&gt;&lt;P&gt;I'm completely lost and any help is much appreciated.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Naveen&lt;/P&gt;</description>
    <pubDate>Sat, 27 Aug 2022 04:51:27 GMT</pubDate>
    <dc:creator>Nreddy</dc:creator>
    <dc:date>2022-08-27T04:51:27Z</dc:date>
    <item>
      <title>Dynamic connection based on selection on slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamic-connection-based-on-selection-on-slicer/m-p/2730092#M38201</link>
      <description>&lt;P&gt;Hello Folks,&lt;/P&gt;&lt;P&gt;I Need help to achieve below Requirement.&lt;/P&gt;&lt;P&gt;We do have different region data in different databases and we do have all connection, Username,password details on the metadata database.&lt;/P&gt;&lt;P&gt;The requirement is&lt;/P&gt;&lt;P&gt;In slicer (Region) if we select US than I will query from metadata and get the connection details and get connected to that Us database and fetch the us related data.&lt;/P&gt;&lt;P&gt;I'm completely lost and any help is much appreciated.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Naveen&lt;/P&gt;</description>
      <pubDate>Sat, 27 Aug 2022 04:51:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamic-connection-based-on-selection-on-slicer/m-p/2730092#M38201</guid>
      <dc:creator>Nreddy</dc:creator>
      <dc:date>2022-08-27T04:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic connection based on selection on slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamic-connection-based-on-selection-on-slicer/m-p/2734129#M38240</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="433408" data-lia-user-login="Nreddy" class="lia-mention lia-mention-user"&gt;Nreddy&lt;/a&gt;&amp;nbsp;，&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you use Direct Query to connect to your data source,&amp;nbsp;I suggest you to try dynamic M query parameters. You can use slicer to get dynamic username and password then pass the data to query by parameter.&lt;/P&gt;
&lt;P&gt;For reference:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-dynamic-m-query-parameters" target="_self"&gt;Dynamic M query parameters in Power BI Desktop&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If you use import connection mode, I suggest you to create username and password parameters in M query. Add the parameter into your query as above and you can choose parameter to change your data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 06:12:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamic-connection-based-on-selection-on-slicer/m-p/2734129#M38240</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-30T06:12:52Z</dc:date>
    </item>
  </channel>
</rss>

