<?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 Customers who purchased more than X Units - Total not filtered in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Customers-who-purchased-more-than-X-Units-Total-not/m-p/3865657#M151009</link>
    <description>&lt;P&gt;Another option is calculate(distinctcount('Table'[Accounts]), 'Table'[Units Sold] &amp;gt; 1)&lt;/P&gt;</description>
    <pubDate>Wed, 24 Apr 2024 13:46:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-04-24T13:46:17Z</dc:date>
    <item>
      <title>Count Customers who purchased more than X Units - Total not filtered</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Customers-who-purchased-more-than-X-Units-Total-not/m-p/3860453#M150804</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This seems to be a very easy DAX but somehow I haven't found the solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a copy of a table I am working on:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just need to count the number of customers who purchased more than 1 unit.&amp;nbsp; The answer should be 6 in the example above.&amp;nbsp; But, the total is currently summing all the customers which is 13.&amp;nbsp; I tried various fashions of sumx and couldn't get anything closer than the if formula.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any hints?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 22:19:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Customers-who-purchased-more-than-X-Units-Total-not/m-p/3860453#M150804</guid>
      <dc:creator>etane</dc:creator>
      <dc:date>2024-04-22T22:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Count Customers who purchased more than X Units - Total not filtered</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Customers-who-purchased-more-than-X-Units-Total-not/m-p/3860486#M150807</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="687592" data-lia-user-login="etane" class="lia-mention lia-mention-user"&gt;etane&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would a measure like this help?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Customers who bought multiple units = 
    COUNTROWS(
        FILTER(
            SUMMARIZE(
                'Table',
                'Table'[Accounts],
                "_Units",
                    SUM( 'Table'[Units Sold] )
            ),
            [_Units] &amp;gt; 1
        )
    )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if you have any questions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://1drv.ms/u/s!AnF6rI36HAVkhYZrVwW9AxlIkS57hA?e=2IocDu" target="_blank" rel="noopener"&gt;etane.pbix&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;(In the model I added DimAccount so I could fix the sort order.)&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 23:00:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Customers-who-purchased-more-than-X-Units-Total-not/m-p/3860486#M150807</guid>
      <dc:creator>gmsamborn</dc:creator>
      <dc:date>2024-04-22T23:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: Count Customers who purchased more than X Units - Total not filtered</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Customers-who-purchased-more-than-X-Units-Total-not/m-p/3860496#M150809</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="6727" data-lia-user-login="GS" class="lia-mention lia-mention-user"&gt;GS&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks!&amp;nbsp; Works like a charm.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 23:06:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Customers-who-purchased-more-than-X-Units-Total-not/m-p/3860496#M150809</guid>
      <dc:creator>etane</dc:creator>
      <dc:date>2024-04-22T23:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: Count Customers who purchased more than X Units - Total not filtered</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Customers-who-purchased-more-than-X-Units-Total-not/m-p/3865657#M151009</link>
      <description>&lt;P&gt;Another option is calculate(distinctcount('Table'[Accounts]), 'Table'[Units Sold] &amp;gt; 1)&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 13:46:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-Customers-who-purchased-more-than-X-Units-Total-not/m-p/3865657#M151009</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-24T13:46:17Z</dc:date>
    </item>
  </channel>
</rss>

