<?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: Distinct Count and count the ones with an average Score of &amp;gt;= 90% in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-and-count-the-ones-with-an-average-Score-of-gt-90/m-p/1873815#M40211</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;myMeasurecount =
VAR _curID =
    MAX ( 'Table'[ID] )
VAR _calc =
    CALCULATE (
        AVERAGE ( 'Table'[%Score] ),
        FILTER ( ALLEXCEPT ( 'Table', 'Table'[ID] ), MAX ( 'Table'[ID] ) = _curID )
    )
RETURN
    IF ( _calc &amp;gt;= .90, 1, 0 )
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Try this.&lt;BR /&gt;&lt;BR /&gt;Let me know if you have any questions.&lt;BR /&gt;&lt;BR /&gt;If this solves your issues, please mark it as the &lt;STRONG&gt;solution, &lt;/STRONG&gt;so that others can find it easily. &lt;STRONG&gt;Kudos &lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;are nice too.&lt;BR /&gt;Nathaniel&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Jun 2021 01:17:33 GMT</pubDate>
    <dc:creator>Nathaniel_C</dc:creator>
    <dc:date>2021-06-01T01:17:33Z</dc:date>
    <item>
      <title>Distinct Count and count the ones with an average Score of &gt;= 90%</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-and-count-the-ones-with-an-average-Score-of-gt-90/m-p/1873774#M40208</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Hi All,&amp;nbsp;&lt;BR /&gt;I'm new to powerbi. I'm trying to create a measure that will only count with Score(% Score) average of &amp;gt;=90% by ID. A distinct value on column "ID". Kindly refer to the attached image. Your help is greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 00:12:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-and-count-the-ones-with-an-average-Score-of-gt-90/m-p/1873774#M40208</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-01T00:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Count and count the ones with an average Score of &gt;= 90%</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-and-count-the-ones-with-an-average-Score-of-gt-90/m-p/1873815#M40211</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;myMeasurecount =
VAR _curID =
    MAX ( 'Table'[ID] )
VAR _calc =
    CALCULATE (
        AVERAGE ( 'Table'[%Score] ),
        FILTER ( ALLEXCEPT ( 'Table', 'Table'[ID] ), MAX ( 'Table'[ID] ) = _curID )
    )
RETURN
    IF ( _calc &amp;gt;= .90, 1, 0 )
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Try this.&lt;BR /&gt;&lt;BR /&gt;Let me know if you have any questions.&lt;BR /&gt;&lt;BR /&gt;If this solves your issues, please mark it as the &lt;STRONG&gt;solution, &lt;/STRONG&gt;so that others can find it easily. &lt;STRONG&gt;Kudos &lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;are nice too.&lt;BR /&gt;Nathaniel&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 01:17:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-and-count-the-ones-with-an-average-Score-of-gt-90/m-p/1873815#M40211</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2021-06-01T01:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Count and count the ones with an average Score of &gt;= 90%</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-and-count-the-ones-with-an-average-Score-of-gt-90/m-p/1873822#M40212</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;, and if you use essentially the same measure, but just return the _calc, you will have the averages.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;myMeasureAverage = 
VAR _curID =
    MAX ( 'Table'[ID] )
VAR _calc =
    CALCULATE (
        AVERAGE ( 'Table'[%Score] ),
        FILTER ( ALLEXCEPT ( 'Table', 'Table'[ID] ), MAX ( 'Table'[ID] ) = _curID )
    )
RETURN
    _calc&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bonus!&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;BR /&gt;Let me know if you have any questions.&lt;BR /&gt;&lt;BR /&gt;If this solves your issues, please mark it as the &lt;STRONG&gt;solution, &lt;/STRONG&gt;so that others can find it easily. &lt;STRONG&gt;Kudos &lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;are nice too.&lt;BR /&gt;Nathaniel&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 01:24:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-and-count-the-ones-with-an-average-Score-of-gt-90/m-p/1873822#M40212</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2021-06-01T01:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Count and count the ones with an average Score of &gt;= 90%</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-and-count-the-ones-with-an-average-Score-of-gt-90/m-p/1875826#M40268</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="159166" data-lia-user-login="Nathaniel_C" class="lia-mention lia-mention-user"&gt;Nathaniel_C&lt;/a&gt;, I'm sorry. I think I wasn't able to express myself very well. Well, I only want to create a measure that will count of all the distinct ID that able to achieved an average score of &amp;gt;= 0.90. I have a filter that can select multi weeks.&lt;BR /&gt;1. distinctcount ( ID)&lt;BR /&gt;2. only count each distinct ID if they passed the score of &amp;gt;= .90&lt;BR /&gt;3. Get the passing rate: total count of distinct ID who passed divided by the distinctcount(ID)&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 17:51:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-and-count-the-ones-with-an-average-Score-of-gt-90/m-p/1875826#M40268</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-01T17:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Count and count the ones with an average Score of &gt;= 90%</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-and-count-the-ones-with-an-average-Score-of-gt-90/m-p/1876246#M40278</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp; try this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;NewMeasure =
VAR _distinctCount =
    DISTINCTCOUNT ( 'Table'[ID] ) //Count how many ids
VAR _summarizeTable =
    SUMMARIZECOLUMNS (
        'Table'[ID],
        'Table',
        "Average",
            IF ( AVERAGE ( 'Table'[%Score] ) &amp;gt;= .9, 1, 0 ) //if equal to or greater than .9 give it a 1
    )
VAR _passingCount =
    SUMX ( _summarizeTable, [Average] )
VAR _calc =
    DIVIDE ( _passingCount, _distinctCount ) //Sum the average column from the table above and divide it by the total of ids
RETURN
    _calc
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;and if you just want the passing count, return _passingCount instead of _calc&lt;BR /&gt;Let me know if you have any questions.&lt;BR /&gt;&lt;BR /&gt;If this solves your issues, please mark it as the &lt;STRONG&gt;solution, &lt;/STRONG&gt;so that others can find it easily. &lt;STRONG&gt;Kudos &lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;are nice too.&lt;BR /&gt;Nathaniel&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 00:12:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-and-count-the-ones-with-an-average-Score-of-gt-90/m-p/1876246#M40278</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2021-06-02T00:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Count and count the ones with an average Score of &gt;= 90%</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-and-count-the-ones-with-an-average-Score-of-gt-90/m-p/1878497#M40324</link>
      <description>&lt;P&gt;You Rock! Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="159166" data-lia-user-login="Nathaniel_C" class="lia-mention lia-mention-user"&gt;Nathaniel_C&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 19:03:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-and-count-the-ones-with-an-average-Score-of-gt-90/m-p/1878497#M40324</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-02T19:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct Count and count the ones with an average Score of &gt;= 90%</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-and-count-the-ones-with-an-average-Score-of-gt-90/m-p/1878551#M40327</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;, you are welcome!&lt;BR /&gt;&lt;BR /&gt;Nathaniel&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 19:34:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Distinct-Count-and-count-the-ones-with-an-average-Score-of-gt-90/m-p/1878551#M40327</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2021-06-02T19:34:00Z</dc:date>
    </item>
  </channel>
</rss>

