<?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: PBI Report Builder - Multi-value parameter with DAX query in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/PBI-Report-Builder-Multi-value-parameter-with-DAX-query/m-p/3438882#M31146</link>
    <description>&lt;P&gt;DAX does not natively support multivalue parameters so a workaround was added a few years ago. This article might help.&amp;nbsp;&lt;A href="https://blog.crossjoin.co.uk/2019/11/03/power-bi-report-builder-and-rscustomdaxfilter/" target="_blank"&gt;https://blog.crossjoin.co.uk/2019/11/03/power-bi-report-builder-and-rscustomdaxfilter/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Sep 2023 20:37:41 GMT</pubDate>
    <dc:creator>bradsy</dc:creator>
    <dc:date>2023-09-19T20:37:41Z</dc:date>
    <item>
      <title>PBI Report Builder - Multi-value parameter with DAX query</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/PBI-Report-Builder-Multi-value-parameter-with-DAX-query/m-p/3438224#M31139</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently trying to create a Power BI report, where the datasource is a Power BI Dashboard.&lt;BR /&gt;I want to have a multi-value parameter to filter on a specific field of my report.&lt;/P&gt;&lt;P&gt;Here is what I have done:&lt;/P&gt;&lt;P&gt;- Created a report level multi-value parameter&lt;/P&gt;&lt;P&gt;- Associated the report parameter with a query parameter within my dataset&lt;/P&gt;&lt;P&gt;- Declared a parameter within query designed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And then I'm using the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;EVALUATE SUMMARIZECOLUMNS('mytable'[col1], 'mytable'[col2],
TREATAS({@parameter},'mytable'[col1])
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Issue is, when I'm executing the report, the filter only work if I'm putting a single value in the parameter.&lt;/P&gt;&lt;P&gt;As soon as I put more than one value, I'm getting an empty report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also tried with the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;FILTER(
KEEPFILTERS(VALUES('mytable'[col1])),'mytable'[col1] IN {@parameter}))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I'm getting the same behaviour.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any help you can provide.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 12:34:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/PBI-Report-Builder-Multi-value-parameter-with-DAX-query/m-p/3438224#M31139</guid>
      <dc:creator>JojoPBI</dc:creator>
      <dc:date>2023-09-19T12:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: PBI Report Builder - Multi-value parameter with DAX query</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/PBI-Report-Builder-Multi-value-parameter-with-DAX-query/m-p/3438882#M31146</link>
      <description>&lt;P&gt;DAX does not natively support multivalue parameters so a workaround was added a few years ago. This article might help.&amp;nbsp;&lt;A href="https://blog.crossjoin.co.uk/2019/11/03/power-bi-report-builder-and-rscustomdaxfilter/" target="_blank"&gt;https://blog.crossjoin.co.uk/2019/11/03/power-bi-report-builder-and-rscustomdaxfilter/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 20:37:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/PBI-Report-Builder-Multi-value-parameter-with-DAX-query/m-p/3438882#M31146</guid>
      <dc:creator>bradsy</dc:creator>
      <dc:date>2023-09-19T20:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: PBI Report Builder - Multi-value parameter with DAX query</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/PBI-Report-Builder-Multi-value-parameter-with-DAX-query/m-p/3439480#M31159</link>
      <description>&lt;P&gt;Thanks for your answer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was using this blog&amp;nbsp;&lt;A href="https://torchcloudconsulting.medium.com/power-bi-report-builder-parameterizing-dax-queries-59e95a12b654" target="_blank"&gt;https://torchcloudconsulting.medium.com/power-bi-report-builder-parameterizing-dax-queries-59e95a12b654&lt;/A&gt;&amp;nbsp;as a reference to try and create my query but seems like its solution is untested.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ended up concatenating my multi-value parameter into a single string with pipes when passing it from the report to the query, and use PathContains function, but it's quite an ugly solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would MDX be better to request a Power BI dataset from Report Builder? Seems like it's the only other solution as I'm trying to connect to a Databricks datasource, and this is only supported in Power BI but not Report Builder.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 07:40:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/PBI-Report-Builder-Multi-value-parameter-with-DAX-query/m-p/3439480#M31159</guid>
      <dc:creator>JojoPBI</dc:creator>
      <dc:date>2023-09-20T07:40:53Z</dc:date>
    </item>
  </channel>
</rss>

