<?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: Switch dynamically between the databases depending on user credentials in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Switch-dynamically-between-the-databases-depending-on-user/m-p/2310184#M34141</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/293962"&gt;@Daryl-Lynch-Bzy&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;The users are not technical. They are just accessing/reading the report and the reason I'm looking for a dynamic solution is because the number of users will increase over time, thus need to look for a scalable solution where I don't have to duplicate the same report for each user. Is there any other way I can look at this?&lt;/P&gt;</description>
    <pubDate>Mon, 31 Jan 2022 08:45:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-01-31T08:45:21Z</dc:date>
    <item>
      <title>Switch dynamically between the databases depending on user credentials</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Switch-dynamically-between-the-databases-depending-on-user/m-p/2307464#M34116</link>
      <description>&lt;DIV class="kvgmc6g5 cxmmr5t8 oygrvhab hcukyx3x c1et5uql ii04i59q"&gt;&lt;DIV&gt;Hello everyone,&lt;DIV class="cxmmr5t8 oygrvhab hcukyx3x c1et5uql o9v6fnle ii04i59q"&gt;&lt;DIV&gt;I have 2 databases in SQL Server with exact same schema. I have a report in Power BI that will be shared online with 2 users (with power BI licenses). Each database relates to a user. How can I make the report switch dynamically between the databases depending on which user is logged in?&lt;DIV class="cxmmr5t8 oygrvhab hcukyx3x c1et5uql o9v6fnle ii04i59q"&gt;&lt;DIV&gt;I've explored RLS but it is not feasible to combine tables from the two databases since they have millions of rows. I would prefer to keep them independent.&amp;nbsp; I've also explored the option of using parameters that defines the database name&amp;nbsp; but that still implies manual action of switching to the relevant parameter for each data source.&lt;DIV&gt;Any ideas would be much appreciated.&lt;DIV&gt;&amp;nbsp;&lt;DIV&gt;Adrian&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 28 Jan 2022 11:02:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Switch-dynamically-between-the-databases-depending-on-user/m-p/2307464#M34116</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-01-28T11:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Switch dynamically between the databases depending on user credentials</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Switch-dynamically-between-the-databases-depending-on-user/m-p/2308095#M34117</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;, I don't think this is possible.&amp;nbsp; Power BI would be able to select between the two databases based on current user.&amp;nbsp; This sounds like a Direct Query scenario.&amp;nbsp; Please consider the following:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If there are only two users, why not just give them access to the Server SQL directly.&amp;nbsp; They can fill their boots and even use Power BI if they want to.&lt;/LI&gt;&lt;LI&gt;Consider creating a Template that you can publish to respective user and have them enter the Connection Details and credentials to access the Data Model.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Otherwise, you need manage 2 workspaces, 2 datasets and 2 reports.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jan 2022 16:24:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Switch-dynamically-between-the-databases-depending-on-user/m-p/2308095#M34117</guid>
      <dc:creator>Daryl-Lynch-Bzy</dc:creator>
      <dc:date>2022-01-28T16:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Switch dynamically between the databases depending on user credentials</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Switch-dynamically-between-the-databases-depending-on-user/m-p/2310184#M34141</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/293962"&gt;@Daryl-Lynch-Bzy&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;The users are not technical. They are just accessing/reading the report and the reason I'm looking for a dynamic solution is because the number of users will increase over time, thus need to look for a scalable solution where I don't have to duplicate the same report for each user. Is there any other way I can look at this?&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 08:45:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Switch-dynamically-between-the-databases-depending-on-user/m-p/2310184#M34141</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-01-31T08:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Switch dynamically between the databases depending on user credentials</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Switch-dynamically-between-the-databases-depending-on-user/m-p/2317324#M34196</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Why not create two separate reports based on these two databases? For example, if you have databases ds1 and ds2, you can first connect to ds1 to create report r1, then copy the r1 report file, just change the data source information (because you mentioned that the two data sources have the same &lt;SPAN&gt;schema&lt;/SPAN&gt;) and then save it as r2. Then upload reports r1 and r2 to the service and share them to user 1 and user 2 respectively.&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 09:31:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Switch-dynamically-between-the-databases-depending-on-user/m-p/2317324#M34196</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-03T09:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Switch dynamically between the databases depending on user credentials</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Switch-dynamically-between-the-databases-depending-on-user/m-p/2317588#M34200</link>
      <description>&lt;P&gt;Hi @Anonymous&lt;/a&gt;,&lt;BR /&gt;I would like to have only one report because the number of users will increase overtime and having a duplicate report+data source is not feasible. I guess this is not something that can be done in power bi but perhaps azure?&lt;/P&gt;&lt;P&gt;Anyway thank you for looking at this.&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Adrian&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 11:48:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Switch-dynamically-between-the-databases-depending-on-user/m-p/2317588#M34200</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-03T11:48:59Z</dc:date>
    </item>
  </channel>
</rss>

