<?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: Count rows from filtered measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-from-filtered-measure/m-p/930752#M9552</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="98146" data-lia-user-login="PPalkowski" class="lia-mention lia-mention-user"&gt;PPalkowski&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe the thread starter can do it..&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="205802" data-lia-user-login="PaulPalkowski" class="lia-mention lia-mention-user"&gt;PaulPalkowski&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Feb 2020 20:58:13 GMT</pubDate>
    <dc:creator>VasTg</dc:creator>
    <dc:date>2020-02-12T20:58:13Z</dc:date>
    <item>
      <title>Count rows from filtered measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-from-filtered-measure/m-p/927258#M9441</link>
      <description>&lt;P&gt;I have tried and tried to look for a solution, and didn't find anything that wasn't confusing. I must be over thinking this...&lt;/P&gt;&lt;P&gt;Here is my data, it's so very simple...only one column named Animal, with 16 rows. I am looking for a measure that returns the distinct count of animals that are on the list once, and a distinct count of animals that are on this list more than once. So in this instance, that are a total of&amp;nbsp; 9 different animals, 3 animals are listed once and 6 are listed more than once.&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Animal&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Lion&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Lion&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Bear&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Dog&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Cat&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Bird&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Bird&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Deer&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Monkey&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Monkey&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Cat&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Bear&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Beaver&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Beaver&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Beaver&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Moose&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;I already have this&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2020 15:55:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-from-filtered-measure/m-p/927258#M9441</guid>
      <dc:creator>PaulPalkowski</dc:creator>
      <dc:date>2020-02-10T15:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows from filtered measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-from-filtered-measure/m-p/927310#M9442</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="205802" data-lia-user-login="PaulPalkowski" class="lia-mention lia-mention-user"&gt;PaulPalkowski&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this measures...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Single_Occurrence = 
VAR A = SUMMARIZE('Table (2)','Table (2)'[Animal],"Count1",COUNT('Table (2)'[Animal]))
RETURN CALCULATE(COUNT('Table (2)'[Animal]),FILTER(a,[Count1]=1))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Multiple_Occurrence = 
VAR A = SUMMARIZE('Table (2)','Table (2)'[Animal],"Count1",COUNT('Table (2)'[Animal]))
RETURN CALCULATE(COUNT('Table (2)'[Animal]),FILTER(a,[Count1]&amp;gt;1))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it helps, mark it as a solution&lt;/P&gt;&lt;P&gt;Kudos are nice too&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2020 16:36:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-from-filtered-measure/m-p/927310#M9442</guid>
      <dc:creator>VasTg</dc:creator>
      <dc:date>2020-02-10T16:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows from filtered measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-from-filtered-measure/m-p/928538#M9473</link>
      <description>&lt;P&gt;Thank you so very much, the first formula, works wonderful and returns 3 as expected, the second formula returns 13 and not 6. I am trying to get the count of the unique animals that are listed more than once. In this case, 6 is the count I am looking for.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 13:36:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-from-filtered-measure/m-p/928538#M9473</guid>
      <dc:creator>PPalkowski</dc:creator>
      <dc:date>2020-02-11T13:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows from filtered measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-from-filtered-measure/m-p/928681#M9477</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="98146" data-lia-user-login="PPalkowski" class="lia-mention lia-mention-user"&gt;PPalkowski&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Replace the count with distinctcount in the return statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Multiple_Occurrence = 
VAR A = SUMMARIZE('Table (2)','Table (2)'[Animal],"Count1",COUNT('Table (2)'[Animal]))
RETURN CALCULATE(DISTINCTCOUNT('Table (2)'[Animal]),FILTER(a,[Count1]&amp;gt;1))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it helps mark it as a solution&lt;/P&gt;&lt;P&gt;Kudos are nice too&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 15:14:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-from-filtered-measure/m-p/928681#M9477</guid>
      <dc:creator>VasTg</dc:creator>
      <dc:date>2020-02-11T15:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows from filtered measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-from-filtered-measure/m-p/928692#M9478</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="205802" data-lia-user-login="PaulPalkowski" class="lia-mention lia-mention-user"&gt;PaulPalkowski&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="98146" data-lia-user-login="PPalkowski" class="lia-mention lia-mention-user"&gt;PPalkowski&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I answered your question please mark it as a solution to close the topic.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 15:21:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-from-filtered-measure/m-p/928692#M9478</guid>
      <dc:creator>VasTg</dc:creator>
      <dc:date>2020-02-11T15:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows from filtered measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-from-filtered-measure/m-p/928700#M9479</link>
      <description>&lt;P&gt;EXCELLENT!!!&lt;/P&gt;&lt;P&gt;Thank you so much..&lt;/P&gt;&lt;P&gt;hmmm, how to I mark this a 'the' solution...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 15:24:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-from-filtered-measure/m-p/928700#M9479</guid>
      <dc:creator>PPalkowski</dc:creator>
      <dc:date>2020-02-11T15:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows from filtered measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-from-filtered-measure/m-p/928718#M9481</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="98146" data-lia-user-login="PPalkowski" class="lia-mention lia-mention-user"&gt;PPalkowski&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess you should see accept a solution button in my response near reply...&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 15:32:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-from-filtered-measure/m-p/928718#M9481</guid>
      <dc:creator>VasTg</dc:creator>
      <dc:date>2020-02-11T15:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows from filtered measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-from-filtered-measure/m-p/928757#M9483</link>
      <description>&lt;P&gt;I don't see anything&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 15:48:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-from-filtered-measure/m-p/928757#M9483</guid>
      <dc:creator>PPalkowski</dc:creator>
      <dc:date>2020-02-11T15:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows from filtered measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-from-filtered-measure/m-p/930740#M9551</link>
      <description>&lt;P&gt;I do not see ANY option to mark this as solved....&lt;/P&gt;&lt;P&gt;All I see is a thumb for Kudos , the number of kudos given and reply..&lt;/P&gt;&lt;P&gt;that's it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 20:45:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-from-filtered-measure/m-p/930740#M9551</guid>
      <dc:creator>PPalkowski</dc:creator>
      <dc:date>2020-02-12T20:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows from filtered measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-from-filtered-measure/m-p/930752#M9552</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="98146" data-lia-user-login="PPalkowski" class="lia-mention lia-mention-user"&gt;PPalkowski&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe the thread starter can do it..&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="205802" data-lia-user-login="PaulPalkowski" class="lia-mention lia-mention-user"&gt;PaulPalkowski&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 20:58:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-from-filtered-measure/m-p/930752#M9552</guid>
      <dc:creator>VasTg</dc:creator>
      <dc:date>2020-02-12T20:58:13Z</dc:date>
    </item>
  </channel>
</rss>

