<?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: RSCustomDaxFilter Documentation in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RSCustomDaxFilter-Documentation/m-p/3776471#M147606</link>
    <description>&lt;P&gt;Additionally, RSCustomDaxFilter for multi-value parameters is essentially syntactic sugar for this FILTER pattern:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    FILTER( 
        VALUES('MyTable'[Filter Column]), 
        PATHCONTAINS(@MyParameter, 'MyTable'[Filter Column])
    ), &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;as long as you first change the dataset parameter to be a string that joins the parameter array items using the pipe character:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=join(Parameters!MyParameter.Value, "|")&lt;/LI-CODE&gt;&lt;P&gt;and once you have the DAX you can change it as needed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Mar 2024 01:10:42 GMT</pubDate>
    <dc:creator>leathard</dc:creator>
    <dc:date>2024-03-20T01:10:42Z</dc:date>
    <item>
      <title>RSCustomDaxFilter Documentation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RSCustomDaxFilter-Documentation/m-p/3161337#M113549</link>
      <description>&lt;P&gt;Is there documentation anywhere on the&amp;nbsp;RSCustomDaxFilter function used in Report Builder?&amp;nbsp; Specifically, I'm interested in what (if any) other accepable options are for the second parameter besides EqualToCondition.&amp;nbsp; Is there a "greater than or equal to option"?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 15:35:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RSCustomDaxFilter-Documentation/m-p/3161337#M113549</guid>
      <dc:creator>sedkimic</dc:creator>
      <dc:date>2023-03-29T15:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: RSCustomDaxFilter Documentation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RSCustomDaxFilter-Documentation/m-p/3163497#M113692</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="495390" data-lia-user-login="sedkimic" class="lia-mention lia-mention-user"&gt;sedkimic&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have not been able to find the official documentation on RSCustomDaxFilter &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, based on &lt;A href="https://www.red-gate.com/simple-talk/databases/sql-server/bi-sql-server/introduction-to-dax-for-paginated-reports/" target="_blank" rel="noopener"&gt;this article&lt;/A&gt;, it appears that the only possible conditions for&amp;nbsp;RSCustomDaxFilter are:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;EqualToCondition&lt;/LI&gt;
&lt;LI&gt;NotEqualToCondition&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;But if you have a single-valued parameter that you are using as the lower-bound of a filter, then you can use syntax like this in the Report Builder DAX query:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MyTable[MyColumn] &amp;gt;= @MyParameter&lt;/LI-CODE&gt;
&lt;P&gt;This assumes "MyParameter" is configured correctly and the type corresponds to MyColumn etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Owen&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 13:07:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RSCustomDaxFilter-Documentation/m-p/3163497#M113692</guid>
      <dc:creator>OwenAuger</dc:creator>
      <dc:date>2023-03-30T13:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: RSCustomDaxFilter Documentation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RSCustomDaxFilter-Documentation/m-p/3163620#M113700</link>
      <description>&lt;P&gt;This is what I tried based on your suggestion where&amp;nbsp;@CalendarEndofMonth matches a report parameter that had been previously defined and is being used by other datasets in the report.&amp;nbsp; When validating the query I receive an error message that contains "The query contains the 'CalendarEndofMonth' parameter, which is not declared."&amp;nbsp; Does the parameter have to be declared in the query as well?&amp;nbsp; And if so, how?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This does return the expected result within DAX Studio.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;EVALUATE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SUMMARIZECOLUMNS&lt;/SPAN&gt; &lt;SPAN&gt;(&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;'Calendar'[End of Month]&lt;/SPAN&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;FILTER&lt;/SPAN&gt; &lt;SPAN&gt;(&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;VALUES&lt;/SPAN&gt; &lt;SPAN&gt;(&lt;/SPAN&gt; &lt;SPAN&gt;'Calendar'[End of Month]&lt;/SPAN&gt; &lt;SPAN&gt;)&lt;/SPAN&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;(&lt;/SPAN&gt; &lt;SPAN&gt;'Calendar'[End of Month]&lt;/SPAN&gt; &amp;gt;= &lt;SPAN&gt;@CalendarEndofMonth&lt;/SPAN&gt; &lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;)&lt;/SPAN&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;"5 Year Treasury Yield"&lt;/SPAN&gt;, &lt;SPAN&gt;[5 Year Treasury Yield]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 14:07:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RSCustomDaxFilter-Documentation/m-p/3163620#M113700</guid>
      <dc:creator>sedkimic</dc:creator>
      <dc:date>2023-03-30T14:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: RSCustomDaxFilter Documentation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RSCustomDaxFilter-Documentation/m-p/3165788#M113852</link>
      <description>&lt;P&gt;Hi again,&lt;/P&gt;
&lt;P&gt;I did get this working yesterday, but today tried to retrace my steps and realised I'd forgotten some of the fiddly details, so just replying now &lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In short, yes, you should create a query parameter and set its value to that of the existing report parameter (in Dataset Properties &amp;gt; Parameters).&lt;/P&gt;
&lt;P&gt;Also, you should avoid Query Designer (in my experience).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For completeness, the full set of steps I followed:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Create a new Dataset&lt;/LI&gt;
&lt;LI&gt;In the Dataset Properties dialog box, in Parameters section, click Add.&lt;/LI&gt;
&lt;LI&gt;Enter Parameter Name&lt;BR /&gt;This can be the same name or a different name from the existing report parameter, as it is scoped to the query.&lt;/LI&gt;
&lt;LI&gt;For Parameter Value, select the existing report parameter from the dropdown.&lt;/LI&gt;
&lt;LI&gt;Go to Query section of Dataset Properties dialog box.&lt;/LI&gt;
&lt;LI&gt;Specify Name &amp;amp; Data source&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Don't click Query Designer.&lt;/STRONG&gt; Enter or paste DAX query into Query dialog box, incorporating the query parameter defined above.&lt;/LI&gt;
&lt;LI&gt;Click Validate Query to confirm it works, then OK.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;I have to give credit to &lt;A href="https://www.reddit.com/r/PowerBI/comments/11tmxn4/comment/jcyimrd/?utm_source=share&amp;amp;utm_medium=web2x&amp;amp;context=3" target="_blank" rel="noopener"&gt;this Reddit comment&lt;/A&gt;&amp;nbsp;where the author followed similar steps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Owen&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 12:29:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RSCustomDaxFilter-Documentation/m-p/3165788#M113852</guid>
      <dc:creator>OwenAuger</dc:creator>
      <dc:date>2023-03-31T12:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: RSCustomDaxFilter Documentation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RSCustomDaxFilter-Documentation/m-p/3166000#M113868</link>
      <description>&lt;P&gt;That did it.&amp;nbsp; Thanks for the steps.&amp;nbsp; This doesn't seem to be documented well by Microsoft.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 13:39:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RSCustomDaxFilter-Documentation/m-p/3166000#M113868</guid>
      <dc:creator>sedkimic</dc:creator>
      <dc:date>2023-03-31T13:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: RSCustomDaxFilter Documentation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RSCustomDaxFilter-Documentation/m-p/3776471#M147606</link>
      <description>&lt;P&gt;Additionally, RSCustomDaxFilter for multi-value parameters is essentially syntactic sugar for this FILTER pattern:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    FILTER( 
        VALUES('MyTable'[Filter Column]), 
        PATHCONTAINS(@MyParameter, 'MyTable'[Filter Column])
    ), &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;as long as you first change the dataset parameter to be a string that joins the parameter array items using the pipe character:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=join(Parameters!MyParameter.Value, "|")&lt;/LI-CODE&gt;&lt;P&gt;and once you have the DAX you can change it as needed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 01:10:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RSCustomDaxFilter-Documentation/m-p/3776471#M147606</guid>
      <dc:creator>leathard</dc:creator>
      <dc:date>2024-03-20T01:10:42Z</dc:date>
    </item>
  </channel>
</rss>

