<?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: Change Database dynamically in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Change-Database-dynamically/m-p/3712816#M32973</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="692833" data-lia-user-login="Saumil" class="lia-mention lia-mention-user"&gt;Saumil&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please try below steps:&lt;/P&gt;
&lt;P&gt;1. Create a Parameter:&lt;BR /&gt;- Open your Power BI Desktop.&lt;BR /&gt;- Go to the Home tab and click on Manage Parameters.&lt;BR /&gt;- Create a new parameter (e.g., "DatabaseName") and set its value to the initial database name (e.g., "AdventureWorksDW2012").&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Modify Your Data Source:&lt;BR /&gt;- Connect to your data source (e.g., SQL Server database) using Power Query.&lt;BR /&gt;- In the Power Query Editor, locate the step where you specify the database connection.&lt;BR /&gt;- Instead of hard-coding the database name, replace it with the parameter you created (e.g., '#"AdventureWorksDW2012"').&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Change the Data Source Dynamically:&lt;BR /&gt;- Now you can go to the query where you want the source to be dynamically changing.&lt;BR /&gt;- Click on the relevant source step (e.g., the one specifying the database name).&lt;BR /&gt;- Set the database name to come from the parameter you created earlier (e.g., '#"AdventureWorksDW2017BIG"').&lt;BR /&gt;- That's it! Your report will now adapt to the new data source without manual intervention.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more details, you could read related document:&amp;nbsp;&lt;A href="https://radacad.com/change-the-source-of-power-bi-datasets-dynamically-using-power-query-parameters" target="_blank"&gt;Change the Source of Power BI Datasets Dynamically Using Power Query Parameters - RADACAD&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Community Support Team_Binbin Yu&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;, then please consider&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Feb 2024 02:45:58 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-02-21T02:45:58Z</dc:date>
    <item>
      <title>Change Database dynamically</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Change-Database-dynamically/m-p/3709810#M32951</link>
      <description>&lt;P&gt;Hey there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is saumil here. I am new to the power bi and I do have a question. I hope you guys makes me clear about it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a multi-tenant app and have one power bi report. In that report I have a Tenant parameter with the list of values "Tenant1" &amp;amp; "Tenant2". Please refer the screenshot. Now I am using this paramter value to connect to the database as dbname.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I publish the report to the power bi service then from there I can able to change the Tenant value and it loads the report accordingly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wha I wanted to do is, I want to change the database name from my angular or .net core application by passing the value of Tenant Parameter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, can you guys help me out on this?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 05:17:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Change-Database-dynamically/m-p/3709810#M32951</guid>
      <dc:creator>Saumil</dc:creator>
      <dc:date>2024-02-20T05:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: Change Database dynamically</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Change-Database-dynamically/m-p/3712816#M32973</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="692833" data-lia-user-login="Saumil" class="lia-mention lia-mention-user"&gt;Saumil&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please try below steps:&lt;/P&gt;
&lt;P&gt;1. Create a Parameter:&lt;BR /&gt;- Open your Power BI Desktop.&lt;BR /&gt;- Go to the Home tab and click on Manage Parameters.&lt;BR /&gt;- Create a new parameter (e.g., "DatabaseName") and set its value to the initial database name (e.g., "AdventureWorksDW2012").&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Modify Your Data Source:&lt;BR /&gt;- Connect to your data source (e.g., SQL Server database) using Power Query.&lt;BR /&gt;- In the Power Query Editor, locate the step where you specify the database connection.&lt;BR /&gt;- Instead of hard-coding the database name, replace it with the parameter you created (e.g., '#"AdventureWorksDW2012"').&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Change the Data Source Dynamically:&lt;BR /&gt;- Now you can go to the query where you want the source to be dynamically changing.&lt;BR /&gt;- Click on the relevant source step (e.g., the one specifying the database name).&lt;BR /&gt;- Set the database name to come from the parameter you created earlier (e.g., '#"AdventureWorksDW2017BIG"').&lt;BR /&gt;- That's it! Your report will now adapt to the new data source without manual intervention.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more details, you could read related document:&amp;nbsp;&lt;A href="https://radacad.com/change-the-source-of-power-bi-datasets-dynamically-using-power-query-parameters" target="_blank"&gt;Change the Source of Power BI Datasets Dynamically Using Power Query Parameters - RADACAD&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Community Support Team_Binbin Yu&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;, then please consider&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 02:45:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Change-Database-dynamically/m-p/3712816#M32973</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-21T02:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: Change Database dynamically</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Change-Database-dynamically/m-p/3713041#M32976</link>
      <description>&lt;P&gt;Thanks for your reply. I have completed at this level but once I publish that report to power bi server and when I try to pass the parameter value from my angular or .net mvc app then it does not change the database name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I want to pass that dynamic parameter from my client app and needs to get the report details as per the login user's database.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 04:54:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Change-Database-dynamically/m-p/3713041#M32976</guid>
      <dc:creator>vikramkumawat</dc:creator>
      <dc:date>2024-02-21T04:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: Change Database dynamically</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Change-Database-dynamically/m-p/3714017#M32980</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;thanks for your reply. Now what if i want to set the value of that parameter from my client app which made in .net mvc?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 10:30:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Change-Database-dynamically/m-p/3714017#M32980</guid>
      <dc:creator>Saumil</dc:creator>
      <dc:date>2024-02-21T10:30:43Z</dc:date>
    </item>
  </channel>
</rss>

