<?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: DAX Filtering with multiple measures in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Filtering-with-multiple-measures/m-p/2483748#M68121</link>
    <description>&lt;P&gt;Not sure if this will fix it but try&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Num rows =
var lowerBound = [Lower Bound]
var quartile1 =[Quartile1]
return COUNTROWS(FILTER( TechData, TechData[VALUE]&amp;gt; = lowerBound &amp;amp;&amp;amp; TechDate[AcceptanceTime] &amp;lt; quartile1))&lt;/LI-CODE&gt;&lt;P&gt;this will only compute lower bound and quartile 1 once, rather than having to recompute for each row of TechData.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Apr 2022 15:22:00 GMT</pubDate>
    <dc:creator>johnt75</dc:creator>
    <dc:date>2022-04-28T15:22:00Z</dc:date>
    <item>
      <title>DAX Filtering with multiple measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Filtering-with-multiple-measures/m-p/2483560#M68108</link>
      <description>&lt;P&gt;I have created some statistical measure for lower bound, quartile 1, median, quartile 3, and upper bound. &amp;nbsp;I would like to have a count &amp;nbsp;of the records that lay between these boudaries. &amp;nbsp;So, as an example, I created this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;TechData&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;TechData[VALUE]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;gt;= &lt;/SPAN&gt;&lt;SPAN&gt;TechData&lt;/SPAN&gt;&lt;SPAN&gt;[Lower Bound]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;TechData[AcceptanceTime]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt; &lt;/SPAN&gt;&lt;SPAN&gt;Quartile1&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;This returns a blank value. &amp;nbsp;I've discovered that if I put the actual value into the second part of the &amp;amp;&amp;amp;, I get the correct response. &amp;nbsp;So, this works:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;TechData&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;TechData[VALUE]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;gt;= &lt;/SPAN&gt;&lt;SPAN&gt;TechData&lt;/SPAN&gt;&lt;SPAN&gt;[Lower Bound]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;TechData[AcceptanceTime]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt; &lt;/SPAN&gt;&lt;SPAN&gt;20&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Any ideas why it can process the first measure, but seems to have issues when the second is added?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 28 Apr 2022 14:17:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Filtering-with-multiple-measures/m-p/2483560#M68108</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-28T14:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Filtering with multiple measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Filtering-with-multiple-measures/m-p/2483748#M68121</link>
      <description>&lt;P&gt;Not sure if this will fix it but try&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Num rows =
var lowerBound = [Lower Bound]
var quartile1 =[Quartile1]
return COUNTROWS(FILTER( TechData, TechData[VALUE]&amp;gt; = lowerBound &amp;amp;&amp;amp; TechDate[AcceptanceTime] &amp;lt; quartile1))&lt;/LI-CODE&gt;&lt;P&gt;this will only compute lower bound and quartile 1 once, rather than having to recompute for each row of TechData.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 15:22:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Filtering-with-multiple-measures/m-p/2483748#M68121</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-04-28T15:22:00Z</dc:date>
    </item>
  </channel>
</rss>

