<?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 Calculate Distinct count based off a sum greater than a number in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Distinct-count-based-off-a-sum-greater-than-a-number/m-p/2146782#M49420</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 2 tables a client table and a master table that are related. I want to calculate the number of clients thats $ is over 1M. I cant seem to get it, here are some example codes that dont work&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CALCULATE(DISTINCTCOUNT('ClientTable'[ClientName]), MasterTable[$] &amp;gt; 1000000) This results in just the total number of clients in the data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CALCULATE(DISTINCTCOUNT('ClientTable'[ClientName]), FILTER('MasterTable, CALCULATE(SUM('MASTERTABLE'[$]) &amp;gt;= 1000000))))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CALCULATE(DISTINCTCOUNT('ClientTable'[ClientName]), Filter(MasterTable, Calculate(sum(MasterTableJ[$]), allexcept(clienttable, masterclientname)) &amp;gt;= 1000000))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I even tried using a measure&lt;/P&gt;&lt;P&gt;IFMeasure =&amp;nbsp;IF(SUM(MasterTable[$]) &amp;gt; 1000000, 1, 0)&lt;/P&gt;&lt;P&gt;Actual Measure = CALCULATE(DISTINCTCOUNT('ClientTable'[ClientName]),FILTER('MasterTable', 'IFMeasure'[1M] = 1))&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Anyone have any examples/solution to this?&lt;/P&gt;</description>
    <pubDate>Wed, 20 Oct 2021 23:38:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-10-20T23:38:08Z</dc:date>
    <item>
      <title>Calculate Distinct count based off a sum greater than a number</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Distinct-count-based-off-a-sum-greater-than-a-number/m-p/2146782#M49420</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 2 tables a client table and a master table that are related. I want to calculate the number of clients thats $ is over 1M. I cant seem to get it, here are some example codes that dont work&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CALCULATE(DISTINCTCOUNT('ClientTable'[ClientName]), MasterTable[$] &amp;gt; 1000000) This results in just the total number of clients in the data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CALCULATE(DISTINCTCOUNT('ClientTable'[ClientName]), FILTER('MasterTable, CALCULATE(SUM('MASTERTABLE'[$]) &amp;gt;= 1000000))))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CALCULATE(DISTINCTCOUNT('ClientTable'[ClientName]), Filter(MasterTable, Calculate(sum(MasterTableJ[$]), allexcept(clienttable, masterclientname)) &amp;gt;= 1000000))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I even tried using a measure&lt;/P&gt;&lt;P&gt;IFMeasure =&amp;nbsp;IF(SUM(MasterTable[$]) &amp;gt; 1000000, 1, 0)&lt;/P&gt;&lt;P&gt;Actual Measure = CALCULATE(DISTINCTCOUNT('ClientTable'[ClientName]),FILTER('MasterTable', 'IFMeasure'[1M] = 1))&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Anyone have any examples/solution to this?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 23:38:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Distinct-count-based-off-a-sum-greater-than-a-number/m-p/2146782#M49420</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-20T23:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Distinct count based off a sum greater than a number</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Distinct-count-based-off-a-sum-greater-than-a-number/m-p/2147027#M49429</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&lt;/P&gt;
&lt;P&gt;All measures are in the attached pbix file.&lt;/P&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;&lt;STRONG&gt;&lt;EM&gt;Clients count over 1600 : =&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;EM&gt;COUNTROWS ( FILTER ( Clients, [Sales :] &amp;gt; 1600 ) )&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 03:04:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Distinct-count-based-off-a-sum-greater-than-a-number/m-p/2147027#M49429</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2021-10-21T03:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Distinct count based off a sum greater than a number</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Distinct-count-based-off-a-sum-greater-than-a-number/m-p/2148619#M49476</link>
      <description>&lt;P&gt;My $ and client are on two different tables. Also the table with the $ is based off individuals not clients. The tables are related.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 15:51:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Distinct-count-based-off-a-sum-greater-than-a-number/m-p/2148619#M49476</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-21T15:51:12Z</dc:date>
    </item>
  </channel>
</rss>

