<?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: Multi Parameters in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Multi-Parameters/m-p/2547274#M24375</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="272475" data-lia-user-login="BishwaR" class="lia-mention lia-mention-user"&gt;BishwaR&lt;/a&gt;&amp;nbsp;，&lt;/P&gt;
&lt;P&gt;A sample you could refer:&lt;/P&gt;
&lt;P&gt;1. Create a main dataset and then the other filter datasets, for example we have a 2 parameters (Division and Site)&lt;/P&gt;
&lt;P&gt;2. In the main dataset add this code&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FILTER(VALUES('Sites'[Division]),OR(@Division ="All",PATHCONTAINS(@Division,'Sites'[Division]))),&lt;BR /&gt;FILTER(VALUES('Sites'[Site]),OR(@Site="All",PATHCONTAINS(@Site,'Sites'[Site]))),&lt;/P&gt;
&lt;P&gt;3. Under parameters section of the main dataset add this for the relevant parameters&lt;/P&gt;
&lt;P&gt;=Join(Parameters!Division.Value,"|")&lt;/P&gt;
&lt;P&gt;=Join(Parameters!Site.Value,"|")&lt;/P&gt;
&lt;P&gt;4. Under parameters make sure that you are allowing multiple values and the available values and default values are set to the relevant parameter datasets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Finally make sure that when you run the paginated report&amp;nbsp; it should give you all the results i.e. the parameters are optional and unless you select the parameters the data should not be filtered.(in my opinion, this is what you want)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Things to do in the PBI reoprt&lt;/P&gt;
&lt;P&gt;1.Create a measure to export&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;Excel Export URL =&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;VAR __Division =&lt;/DIV&gt;
&lt;DIV&gt;IF (&lt;/DIV&gt;
&lt;DIV&gt;NOT ( ISFILTERED ( Sites[Division] ) ),&lt;/DIV&gt;
&lt;DIV&gt;BLANK (),&lt;/DIV&gt;
&lt;DIV&gt;"&amp;amp;rp:Division="&lt;/DIV&gt;
&lt;DIV&gt;&amp;amp; CONCATENATEX ( ALLSELECTED ( Sites[Division] ), Sites[Division] , "&amp;amp;rp:Division=" )&lt;/DIV&gt;
&lt;DIV&gt;)&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;VAR __Site =&lt;/DIV&gt;
&lt;DIV&gt;IF (&lt;/DIV&gt;
&lt;DIV&gt;NOT ( ISFILTERED ( Sites[Site] ) ),&lt;/DIV&gt;
&lt;DIV&gt;BLANK (),&lt;/DIV&gt;
&lt;DIV&gt;"&amp;amp;rp:Site="&lt;/DIV&gt;
&lt;DIV&gt;&amp;amp; CONCATENATEX ( ALLSELECTED ( Sites[Site] ), Sites[Site], "&amp;amp;rp:Site=" )&lt;/DIV&gt;
&lt;DIV&gt;)&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;VAR __baseURL = "&lt;A href="https://app.powerbi.com/groups/e29303d3-a2bd-4e1f-b6cb-a85be2cbf72f/rdlreports/5670f37c-f056-4cc5-8cce-e903bcf559df" target="_blank" rel="nofollow noopener noreferrer"&gt;https://app.powerbi.com/groups/e29303d3-a2bd-4e1f-b6cb-a85be2cbf72f/rdlreports/5670f37c-f056-4cc5-8c...&lt;/A&gt;?" &amp;amp;__Division&amp;amp;__Site&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;VAR __FinalURL = CONCATENATE(__baseURL, "&amp;amp;rdl:format=EXCELOPENXML")&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;RETURN&lt;/DIV&gt;
&lt;DIV&gt;__FinalURL&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;***** Make sure that you replace the __baseUrl hyperlink with your rdl report link. The best way to do so is to run the rdl report on the power BI service and copy it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Add the measure to pass parameters to the excel.(in my report I have downloaded a excel image and in the action select web url and select the measure you have created).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To learn more details ,refer:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Paginated-report-with-multi-valued-parameter-not-working/m-p/919338" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/Paginated-report-with-multi-valued-parameter-not-working/m-p/919338&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Lucien&lt;/P&gt;</description>
    <pubDate>Mon, 30 May 2022 09:03:06 GMT</pubDate>
    <dc:creator>v-luwang-msft</dc:creator>
    <dc:date>2022-05-30T09:03:06Z</dc:date>
    <item>
      <title>Multi Parameters</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Multi-Parameters/m-p/2542307#M24334</link>
      <description>&lt;P&gt;I am working on Report Builder Paginated Report. I have three parameters Company Name, State and City&lt;/P&gt;&lt;P&gt;When I select the value for the State ( just one parameter) it asks me to input the value in the rest of the parameters also then only I can view the report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way I can use the single parameter without inputting the value in the other two parameters?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 21:19:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Multi-Parameters/m-p/2542307#M24334</guid>
      <dc:creator>BishwaR</dc:creator>
      <dc:date>2022-05-26T21:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Multi Parameters</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Multi-Parameters/m-p/2547274#M24375</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="272475" data-lia-user-login="BishwaR" class="lia-mention lia-mention-user"&gt;BishwaR&lt;/a&gt;&amp;nbsp;，&lt;/P&gt;
&lt;P&gt;A sample you could refer:&lt;/P&gt;
&lt;P&gt;1. Create a main dataset and then the other filter datasets, for example we have a 2 parameters (Division and Site)&lt;/P&gt;
&lt;P&gt;2. In the main dataset add this code&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FILTER(VALUES('Sites'[Division]),OR(@Division ="All",PATHCONTAINS(@Division,'Sites'[Division]))),&lt;BR /&gt;FILTER(VALUES('Sites'[Site]),OR(@Site="All",PATHCONTAINS(@Site,'Sites'[Site]))),&lt;/P&gt;
&lt;P&gt;3. Under parameters section of the main dataset add this for the relevant parameters&lt;/P&gt;
&lt;P&gt;=Join(Parameters!Division.Value,"|")&lt;/P&gt;
&lt;P&gt;=Join(Parameters!Site.Value,"|")&lt;/P&gt;
&lt;P&gt;4. Under parameters make sure that you are allowing multiple values and the available values and default values are set to the relevant parameter datasets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Finally make sure that when you run the paginated report&amp;nbsp; it should give you all the results i.e. the parameters are optional and unless you select the parameters the data should not be filtered.(in my opinion, this is what you want)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Things to do in the PBI reoprt&lt;/P&gt;
&lt;P&gt;1.Create a measure to export&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;Excel Export URL =&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;VAR __Division =&lt;/DIV&gt;
&lt;DIV&gt;IF (&lt;/DIV&gt;
&lt;DIV&gt;NOT ( ISFILTERED ( Sites[Division] ) ),&lt;/DIV&gt;
&lt;DIV&gt;BLANK (),&lt;/DIV&gt;
&lt;DIV&gt;"&amp;amp;rp:Division="&lt;/DIV&gt;
&lt;DIV&gt;&amp;amp; CONCATENATEX ( ALLSELECTED ( Sites[Division] ), Sites[Division] , "&amp;amp;rp:Division=" )&lt;/DIV&gt;
&lt;DIV&gt;)&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;VAR __Site =&lt;/DIV&gt;
&lt;DIV&gt;IF (&lt;/DIV&gt;
&lt;DIV&gt;NOT ( ISFILTERED ( Sites[Site] ) ),&lt;/DIV&gt;
&lt;DIV&gt;BLANK (),&lt;/DIV&gt;
&lt;DIV&gt;"&amp;amp;rp:Site="&lt;/DIV&gt;
&lt;DIV&gt;&amp;amp; CONCATENATEX ( ALLSELECTED ( Sites[Site] ), Sites[Site], "&amp;amp;rp:Site=" )&lt;/DIV&gt;
&lt;DIV&gt;)&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;VAR __baseURL = "&lt;A href="https://app.powerbi.com/groups/e29303d3-a2bd-4e1f-b6cb-a85be2cbf72f/rdlreports/5670f37c-f056-4cc5-8cce-e903bcf559df" target="_blank" rel="nofollow noopener noreferrer"&gt;https://app.powerbi.com/groups/e29303d3-a2bd-4e1f-b6cb-a85be2cbf72f/rdlreports/5670f37c-f056-4cc5-8c...&lt;/A&gt;?" &amp;amp;__Division&amp;amp;__Site&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;VAR __FinalURL = CONCATENATE(__baseURL, "&amp;amp;rdl:format=EXCELOPENXML")&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;RETURN&lt;/DIV&gt;
&lt;DIV&gt;__FinalURL&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;***** Make sure that you replace the __baseUrl hyperlink with your rdl report link. The best way to do so is to run the rdl report on the power BI service and copy it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Add the measure to pass parameters to the excel.(in my report I have downloaded a excel image and in the action select web url and select the measure you have created).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To learn more details ,refer:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Paginated-report-with-multi-valued-parameter-not-working/m-p/919338" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/Paginated-report-with-multi-valued-parameter-not-working/m-p/919338&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Lucien&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2022 09:03:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Multi-Parameters/m-p/2547274#M24375</guid>
      <dc:creator>v-luwang-msft</dc:creator>
      <dc:date>2022-05-30T09:03:06Z</dc:date>
    </item>
  </channel>
</rss>

