<?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: How to change power bi data source parameter in .NET MVC application ? in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/How-to-change-power-bi-data-source-parameter-in-NET-MVC/m-p/3714135#M49671</link>
    <description>&lt;P&gt;@Anonymous&amp;nbsp;thank you for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your solution will work and it will update the Paramter which is being used to fetch the database.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The scernario is, we have multi tenant application and each tenant has it's own database. Now, we want to load the report for the logged in tenant.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g. if the Tenant1 is logged in then our mvc application should pass the Tenant database name as parameter value and it should load the report for that tenant, if Tenant2 logged in then it should load the report for that tenant only and so on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So is it possible?&lt;/P&gt;</description>
    <pubDate>Wed, 21 Feb 2024 11:30:25 GMT</pubDate>
    <dc:creator>vikramkumawat</dc:creator>
    <dc:date>2024-02-21T11:30:25Z</dc:date>
    <item>
      <title>How to change power bi data source parameter in .NET MVC application ?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-change-power-bi-data-source-parameter-in-NET-MVC/m-p/3710461#M49652</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I made a Power BI report that connects to a SQL database and lets me change databases by updating a parameter. This works well when I publish the report and change the parameter in Power BI online. Now, I want to add this report to a .NET MVC application. I need to know how to change the database parameter from within the .NET app, like I can in Power BI online. Is it possible to do this?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 09:02:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-change-power-bi-data-source-parameter-in-NET-MVC/m-p/3710461#M49652</guid>
      <dc:creator>vikramkumawat</dc:creator>
      <dc:date>2024-02-20T09:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to change power bi data source parameter in .NET MVC application ?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-change-power-bi-data-source-parameter-in-NET-MVC/m-p/3713610#M49667</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/686166"&gt;@vikramkumawat&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Base on your description, it seems like you want to change&amp;nbsp;&lt;SPAN&gt;the database parameter from within the .NET app as you can in Power BI. Please try the following steps and check if can achieve your requirement:&lt;/SPAN&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&amp;nbsp;Embed the report:&amp;nbsp;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;A href="https://www.codemag.com/Article/1905061/Creating-Embedded-Reports-in-Your-Web-Apps-with-Power-BI-Embedded" target="_blank" rel="noopener"&gt;Creating Embedded Reports in Your Web Apps with Power BI Embedded (codemag.com)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/embedded/embed-organization-app" target="_blank" rel="noopener"&gt;Embed Power BI report in a Power BI embedded analytics application for your organization - Power BI&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 2. Pass the dynamic parameter to embed report in .NET:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;A href="https://azure.microsoft.com/en-us/updates/power-bi-embedded-query-parameters-api/" target="_blank"&gt;Power BI Embedded Query Parameters API | Azure updates | Microsoft Azure&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;A href="https://stackoverflow.com/questions/54098774/can-i-pass-a-dynamic-query-parameter-to-an-embedded-power-bi-report-in-asp-net-m" target="_blank" rel="noopener"&gt;Can I pass a dynamic query parameter to an embedded Power BI report in ASP.Net MVC? - Stack Overflow&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 08:43:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-change-power-bi-data-source-parameter-in-NET-MVC/m-p/3713610#M49667</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-21T08:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to change power bi data source parameter in .NET MVC application ?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-change-power-bi-data-source-parameter-in-NET-MVC/m-p/3714135#M49671</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp;thank you for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your solution will work and it will update the Paramter which is being used to fetch the database.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The scernario is, we have multi tenant application and each tenant has it's own database. Now, we want to load the report for the logged in tenant.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g. if the Tenant1 is logged in then our mvc application should pass the Tenant database name as parameter value and it should load the report for that tenant, if Tenant2 logged in then it should load the report for that tenant only and so on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So is it possible?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 11:30:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-change-power-bi-data-source-parameter-in-NET-MVC/m-p/3714135#M49671</guid>
      <dc:creator>vikramkumawat</dc:creator>
      <dc:date>2024-02-21T11:30:25Z</dc:date>
    </item>
  </channel>
</rss>

