<?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: Power BI report Server on premises with url paramaters in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-report-Server-on-premises-with-url-paramaters/m-p/4022755#M35774</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi,&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/707207" target="_blank" rel="noopener"&gt;@&lt;SPAN&gt;hackcrr&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Tried code you mentioned but,from the report design--&amp;gt; manage relationship --&amp;gt; not able to bind to parameter .&lt;/P&gt;&lt;P&gt;Here, in advanced property editor not available bind to parameter and from modeling tab-&amp;gt; Field parameter also not available&lt;/P&gt;&lt;P&gt;i am using Power BI Server and Desktop (May 2024)&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jul 2024 11:11:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-07-03T11:11:46Z</dc:date>
    <item>
      <title>Power BI report Server on premises with url paramaters</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-report-Server-on-premises-with-url-paramaters/m-p/4020491#M35758</link>
      <description>&lt;P&gt;1) We are using power bi report server (on-premises) with local network.&lt;/P&gt;&lt;P&gt;2) Created one procedure ([dbo].[GetUserInfo] @SubsNum) with parameter using SQL Server.&lt;/P&gt;&lt;P&gt;3) From power bi desktop, created Query with our server and database, connected direct query mode and added default query 'exec [dbo].[GetUserInfo] @SubsNum=102' from advanced filters.&lt;BR /&gt;4) On 'OK' click, it transform the data with default parameter value&lt;BR /&gt;5) Now we created a new parameter to pass the SubsNum (datatype is whole numer) parameter value dynamically from enduser and added this query to M query editor like below,&lt;/P&gt;&lt;P&gt;let&lt;BR /&gt;Source = (SubsNum as number) =&amp;gt;&lt;BR /&gt;let&lt;BR /&gt;SQLQuery = "EXEC GetUserInfo @SubsNum=" &amp;amp; Number.ToText(SubsNum),&lt;BR /&gt;Result = Sql.Database("server", "databasename", [Query=SQLQuery])&lt;BR /&gt;in&lt;BR /&gt;Result&lt;BR /&gt;in&lt;BR /&gt;Source&lt;/P&gt;&lt;P&gt;6) with the above query, we created one invoke function used this in report design&lt;/P&gt;&lt;P&gt;7) in the report design, Created one new parameter like 'SubsNum' added this to slicer&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; finally we published the report and called this dashboard from end user application with embed url like below,&lt;BR /&gt;&lt;BR /&gt;http://&amp;lt;YourReportServerName&amp;gt;/reports/powerbi/&amp;lt;YourReportPath&amp;gt;?rs:embed=true&amp;amp;SubsNum=101&lt;/P&gt;&lt;P&gt;9) here, every time we get same data if we pass the different value to the SubsNum parameter and we suspect that power bi report server not able to access the paramters&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2024 12:45:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-report-Server-on-premises-with-url-paramaters/m-p/4020491#M35758</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-02T12:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI report Server on premises with url paramaters</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-report-Server-on-premises-with-url-paramaters/m-p/4021391#M35766</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can try the following steps:&lt;BR /&gt;First in Power BI Desktop, create a parameter SubsNum named.&lt;BR /&gt;Set the data type Whole Number and provide the default value. Update your M query to use the defined parameter as shown below:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let
    Source = Sql.Database("server", "databasename"),
    SQLQuery = "EXEC GetUserInfo @SubsNum=" &amp;amp; Number.ToText(SubsNum),
    Result = Sql.Database("server", "databasename", [Query=SQLQuery])
in
    Result&lt;/LI-CODE&gt;&lt;P&gt;Define a function in the M query editor that takes SubsNum as an argument:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let
    Source = (SubsNum as number) =&amp;gt;
    let
        SQLQuery = "EXEC GetUserInfo @SubsNum=" &amp;amp; Number.ToText(SubsNum),
        Result = Sql.Database("server", "databasename", [Query=SQLQuery])
    in
        Result
in
    Source&lt;/LI-CODE&gt;&lt;P&gt;In the report design, call this function and pass the SubsNum parameter to it. Open the report in the Power BI Reporting Server to ensure that it can use the default parameter values.&lt;BR /&gt;Use the following URL format SubsNum to pass parameters dynamically:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;http://&amp;lt;YourReportServerName&amp;gt;/reports/powerbi/&amp;lt;YourReportPath&amp;gt;?rs:embed=true&amp;amp;rs:ParameterName=SubsNum&amp;amp;rs:ParameterValue=101&lt;/LI-CODE&gt;&lt;P&gt;Assume that the report server is named MyReportServer, the report path is Reports/MyReport, and you want to pass a value of 101 for SubsNum:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;http://MyReportServer/reports/powerbi/Reports/MyReport?rs:embed=true&amp;amp;rs:ParameterName=SubsNum&amp;amp;rs:ParameterValue=101&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hackcrr&lt;/P&gt;&lt;P&gt;If this post helps, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;kudos to this post&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2024 23:58:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-report-Server-on-premises-with-url-paramaters/m-p/4021391#M35766</guid>
      <dc:creator>hackcrr</dc:creator>
      <dc:date>2024-07-02T23:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI report Server on premises with url paramaters</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-report-Server-on-premises-with-url-paramaters/m-p/4021828#M35771</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi,&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/707207" target="_blank"&gt;@&lt;SPAN&gt;hackcrr&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thank You in advance,&lt;/P&gt;&lt;P&gt;i will try this code.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 05:10:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-report-Server-on-premises-with-url-paramaters/m-p/4021828#M35771</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-03T05:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI report Server on premises with url paramaters</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-report-Server-on-premises-with-url-paramaters/m-p/4022755#M35774</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi,&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/707207" target="_blank" rel="noopener"&gt;@&lt;SPAN&gt;hackcrr&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Tried code you mentioned but,from the report design--&amp;gt; manage relationship --&amp;gt; not able to bind to parameter .&lt;/P&gt;&lt;P&gt;Here, in advanced property editor not available bind to parameter and from modeling tab-&amp;gt; Field parameter also not available&lt;/P&gt;&lt;P&gt;i am using Power BI Server and Desktop (May 2024)&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 11:11:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-report-Server-on-premises-with-url-paramaters/m-p/4022755#M35774</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-03T11:11:46Z</dc:date>
    </item>
  </channel>
</rss>

