<?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: Need to use COUNTROW with multiple filters in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-use-COUNTROW-with-multiple-filters/m-p/126292#M232</link>
    <description>&lt;P&gt;Sabine,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was out Friday so sorry to get back to you late, but THANK YOU for this syntax.&amp;nbsp; I am just now starting to learn and use DAX and this helps me greatly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;</description>
    <pubDate>Mon, 13 Feb 2017 12:08:31 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-02-13T12:08:31Z</dc:date>
    <item>
      <title>Need to use COUNTROW with multiple filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-use-COUNTROW-with-multiple-filters/m-p/125202#M227</link>
      <description>&lt;P&gt;I would definitely know how to do this with SQL, but not too sure with DAX.&amp;nbsp; Anyway, here is my example for a new measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;QI24 = COUNTROWS(FILTER(DemographicsData, DemographicsData[PopulationName]="Adult MI") &amp;amp;&amp;amp; filter(DemographicsData, DemographicsData[EmploymentStatusName]="1" &amp;amp;&amp;amp; filter(DemographicsData, DemographicsData[EmploymentStatusName]="2" ) / COUNTROWS(FILTER(DemographicsData, DemographicsData[PopulationName]="Adult MI"))))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Obviously this is not correct.&amp;nbsp; Can someone point me in the right direction?&amp;nbsp; Ultimately what this value needs to be is a percentage in the end.&amp;nbsp; And then ultimately I will be comparing that percentage to a "goal" percentage to get a KPI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the information&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 20:25:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-use-COUNTROW-with-multiple-filters/m-p/125202#M227</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-09T20:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: Need to use COUNTROW with multiple filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-use-COUNTROW-with-multiple-filters/m-p/125589#M231</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&lt;BR /&gt;&lt;BR /&gt;Try this measure&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;QI24 = DIVIDE(CALCULATE(COUNTROWS(DemographicsData), DemographicsData[PopulationName]="Adult MI", DemographicsData[EmploymentStatusName]="1", DemographicsData[EmploymentStatusName]="2"), CALCULATE(COUNTROWS(DemographicsData), DemographicsData[PopulationName]="Adult MI"))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And then format it as a percentge from the modling tab.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 14:46:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-use-COUNTROW-with-multiple-filters/m-p/125589#M231</guid>
      <dc:creator>SabineOussi</dc:creator>
      <dc:date>2017-02-10T14:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Need to use COUNTROW with multiple filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-use-COUNTROW-with-multiple-filters/m-p/126292#M232</link>
      <description>&lt;P&gt;Sabine,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was out Friday so sorry to get back to you late, but THANK YOU for this syntax.&amp;nbsp; I am just now starting to learn and use DAX and this helps me greatly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 12:08:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-use-COUNTROW-with-multiple-filters/m-p/126292#M232</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-13T12:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: Need to use COUNTROW with multiple filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-use-COUNTROW-with-multiple-filters/m-p/126309#M233</link>
      <description>&lt;P&gt;And just one more quick question.&amp;nbsp; I see that CALCULATE filters and it probably is an implied "AND" with the filter.&amp;nbsp; I have this working, however it is coming up with Blank data.&amp;nbsp; The filter actually needs to be an "OR" expression.&amp;nbsp; Do you know how I would do that, or would I nest a few CALCULATE functions together and add them up?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 13:04:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-use-COUNTROW-with-multiple-filters/m-p/126309#M233</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-13T13:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Need to use COUNTROW with multiple filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-use-COUNTROW-with-multiple-filters/m-p/126315#M234</link>
      <description>&lt;P&gt;I would say add them up and divide on total :)&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 13:20:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-use-COUNTROW-with-multiple-filters/m-p/126315#M234</guid>
      <dc:creator>SabineOussi</dc:creator>
      <dc:date>2017-02-13T13:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Need to use COUNTROW with multiple filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-use-COUNTROW-with-multiple-filters/m-p/126316#M235</link>
      <description>&lt;P&gt;Yep, and that seems to be working.&amp;nbsp; Thanks again&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 13:22:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-use-COUNTROW-with-multiple-filters/m-p/126316#M235</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-13T13:22:18Z</dc:date>
    </item>
  </channel>
</rss>

