<?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: Sum of Count(column) &amp;gt; 2 in a measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-Count-column-gt-2-in-a-measure/m-p/2893769#M94004</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Write these measures&lt;/P&gt;
&lt;P&gt;Count = countrows(Data)&lt;/P&gt;
&lt;P&gt;Measure1 = SUMX(filter(values(Data[Person]),[count]&amp;gt;=2),[count])&lt;/P&gt;
&lt;P&gt;Drag Measure1 to a card visual.&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
    <pubDate>Tue, 08 Nov 2022 23:43:58 GMT</pubDate>
    <dc:creator>Ashish_Mathur</dc:creator>
    <dc:date>2022-11-08T23:43:58Z</dc:date>
    <item>
      <title>Sum of Count(column) &gt; 2 in a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-Count-column-gt-2-in-a-measure/m-p/2892751#M93938</link>
      <description>&lt;P&gt;Hello to all,&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you see in the above snapshot -&amp;nbsp;&lt;/P&gt;&lt;P&gt;Card show the overall count of Person (Names are repeated), I'm trying to achieve the total count of person with person repeating count is greater than or equal to 2. Based on filter it easy to get the value in the table, I need help in getting this value in a measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data is sensitive hence I have purposely hidden the names in the table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="450074" data-lia-user-login="Shaurya" class="lia-mention lia-mention-user"&gt;Shaurya&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="19851" data-lia-user-login="Ashish_Mathur" class="lia-mention lia-mention-user"&gt;Ashish_Mathur&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 15:29:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-Count-column-gt-2-in-a-measure/m-p/2892751#M93938</guid>
      <dc:creator>aakif_aslam</dc:creator>
      <dc:date>2022-11-08T15:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Count(column) &gt; 2 in a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-Count-column-gt-2-in-a-measure/m-p/2893460#M93994</link>
      <description>&lt;P class="lia-align-justify"&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="275642" data-lia-user-login="aakif_aslam" class="lia-mention lia-mention-user"&gt;aakif_aslam&lt;/a&gt;,&lt;/P&gt;&lt;P class="lia-align-justify"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-justify"&gt;You can create a count column in DAX using:&lt;/P&gt;&lt;P class="lia-align-justify"&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;Count = SUMX('Table',IF('Table'[Person]=EARLIER('Table'[Person]),1,0))&lt;/LI-CODE&gt;&lt;P class="lia-align-justify"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-justify"&gt;And then use this formula for your measure:&lt;/P&gt;&lt;P class="lia-align-justify"&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;Number of People = CALCULATE(DISTINCTCOUNT('Table'[Person]),FILTER('Table','Table'[Count]&amp;gt;=2))&lt;/LI-CODE&gt;&lt;P class="lia-align-justify"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-justify"&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;I&gt;Works for you? Mark this post as a solution if it does!&lt;BR /&gt;Consider taking a look at my blog:&amp;nbsp;&lt;LI-MESSAGE title="How to Export Telemetry Data from Azure IoT Central into Power BI" uid="2845191" url="https://community.powerbi.com/t5/Community-Blog/How-to-Export-Telemetry-Data-from-Azure-IoT-Central-into-Power/m-p/2845191#U2845191" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-blog-thread lia-fa-icon lia-fa-blog lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&lt;/I&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 20:33:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-Count-column-gt-2-in-a-measure/m-p/2893460#M93994</guid>
      <dc:creator>Shaurya</dc:creator>
      <dc:date>2022-11-08T20:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Count(column) &gt; 2 in a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-Count-column-gt-2-in-a-measure/m-p/2893769#M94004</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Write these measures&lt;/P&gt;
&lt;P&gt;Count = countrows(Data)&lt;/P&gt;
&lt;P&gt;Measure1 = SUMX(filter(values(Data[Person]),[count]&amp;gt;=2),[count])&lt;/P&gt;
&lt;P&gt;Drag Measure1 to a card visual.&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 23:43:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-Count-column-gt-2-in-a-measure/m-p/2893769#M94004</guid>
      <dc:creator>Ashish_Mathur</dc:creator>
      <dc:date>2022-11-08T23:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of Count(column) &gt; 2 in a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-Count-column-gt-2-in-a-measure/m-p/2893974#M94012</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="275642" data-lia-user-login="aakif_aslam" class="lia-mention lia-mention-user"&gt;aakif_aslam&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are the steps you can refer to :&lt;/P&gt;
&lt;P&gt;(1)This is my test data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;(2)We can create a measure like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Count &amp;gt;2 = var _t =FILTER( SUMMARIZE('Table','Table'[Person],"Count",COUNT('Table'[Person])) , [Count]&amp;gt;2)
return
COUNTROWS(_t)&lt;/LI-CODE&gt;
&lt;P&gt;(3)Then we can meet your need ,the result is as follows:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Aniya Zhang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt; it as the solution&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 01:50:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-Count-column-gt-2-in-a-measure/m-p/2893974#M94012</guid>
      <dc:creator>v-yueyunzh-msft</dc:creator>
      <dc:date>2022-11-09T01:50:42Z</dc:date>
    </item>
  </channel>
</rss>

