<?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 of Groups with Average Score Above 6, Possibly GROUPBY Average in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-Groups-with-Average-Score-Above-6-Possibly-GROUPBY/m-p/2696388#M81381</link>
    <description>&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;DEFINE 

MEASURE 'Service Scores'[Total Score] = 
    SUM( 'Service Scores'[Service Score] )

MEASURE 'Service Scores'[Average Score by Group] = 
AVERAGEX(
    DISTINCT( 'Service Scores'[Group] ),
    CALCULATE( 
        AVERAGE( 'Service Scores'[Service Score] ),
        REMOVEFILTERS('Service Scores'[ Employee ID] )
    )
)

MEASURE 'Service Scores'[Average Score &amp;gt; 6] =
    [Average Score by Group] &amp;gt; 6

MEASURE 'Service Scores'[# Groups with Avg Score &amp;gt; 6] = 
SUMX(
    DISTINCT('Service Scores'[Group] ),
    IF( [Average Score &amp;gt; 6], 1 )
)&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 12 Aug 2022 00:28:53 GMT</pubDate>
    <dc:creator>daXtreme</dc:creator>
    <dc:date>2022-08-12T00:28:53Z</dc:date>
    <item>
      <title>Count of Groups with Average Score Above 6, Possibly GROUPBY Average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-Groups-with-Average-Score-Above-6-Possibly-GROUPBY/m-p/2696299#M81377</link>
      <description>&lt;P&gt;I have a table that has Group, Sales Person, Service Score. I am trying to find a way to calculate the average Service Score by Group and then Count the number of Groups that have an Average Service Score above 6. I have tried to figure out a way to use SUMMARIZE or GROUPBY to make this happen but those functions are new to me and I can't seem to get them to work. Below is an example of the table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Group&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;Employee ID&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; Service Score&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Group A&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; 001&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Group B&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; 002&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Group C&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; 003&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Group A&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; 004&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Group C&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; 005&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know I can make a table that shows the average score by group but what I need is the count of Groups with an average score over 6 because my end metric is Percentage of Groups with an average Service Score above 6.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this example Group A average score = 4, Group B average score = 10, and Group C average score = 6.5 so&lt;/P&gt;&lt;P&gt;Count of Groups with average score above 6 = 2 and percentage of Groups with average scores above 6 = 67% (2/3)&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 22:58:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-Groups-with-Average-Score-Above-6-Possibly-GROUPBY/m-p/2696299#M81377</guid>
      <dc:creator>BeeTee</dc:creator>
      <dc:date>2022-08-11T22:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Count of Groups with Average Score Above 6, Possibly GROUPBY Average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-Groups-with-Average-Score-Above-6-Possibly-GROUPBY/m-p/2696388#M81381</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;DEFINE 

MEASURE 'Service Scores'[Total Score] = 
    SUM( 'Service Scores'[Service Score] )

MEASURE 'Service Scores'[Average Score by Group] = 
AVERAGEX(
    DISTINCT( 'Service Scores'[Group] ),
    CALCULATE( 
        AVERAGE( 'Service Scores'[Service Score] ),
        REMOVEFILTERS('Service Scores'[ Employee ID] )
    )
)

MEASURE 'Service Scores'[Average Score &amp;gt; 6] =
    [Average Score by Group] &amp;gt; 6

MEASURE 'Service Scores'[# Groups with Avg Score &amp;gt; 6] = 
SUMX(
    DISTINCT('Service Scores'[Group] ),
    IF( [Average Score &amp;gt; 6], 1 )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 12 Aug 2022 00:28:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-Groups-with-Average-Score-Above-6-Possibly-GROUPBY/m-p/2696388#M81381</guid>
      <dc:creator>daXtreme</dc:creator>
      <dc:date>2022-08-12T00:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Count of Groups with Average Score Above 6, Possibly GROUPBY Average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-Groups-with-Average-Score-Above-6-Possibly-GROUPBY/m-p/2697585#M81483</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your response but I am getting the error "To use special characters in a measure, enclose the entire name in brackets and add a ] to any closing brackets in the name."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is what I typed in:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;DEFINE
    MEASURE 'Customer Responses_2022'[TotalScore] = 
        SUM('Customer Responses_2022'[Score])

    MEASURE 'Customer Responses_2022'[AvgScore by Group] = 
        AVERAGEX(
            DISTINCT('Customer Responses_2022'[Group ID]),
                CALCULATE(
                    AVERAGE('Customer Responses_2022'[Score]),
                    REMOVEFILTERS('Customer Responses_2022'[Employee ID])
                )
        )
    MEASURE 'Customer Responses_2022'[AvgScore 6 or Above] = 
        [AvgScore by Group] &amp;gt;=6
                        
    MEASURE 'Customer Responses_2022'[Count of Groups 6 or Above] = 
        SUMX(
            DISTINCT('Customer Responses_2022'[Group ID]),
            IF([AvgScore 6 or Above],1)
        )&lt;/LI-CODE&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;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 14:28:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-Groups-with-Average-Score-Above-6-Possibly-GROUPBY/m-p/2697585#M81483</guid>
      <dc:creator>BeeTee</dc:creator>
      <dc:date>2022-08-12T14:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Count of Groups with Average Score Above 6, Possibly GROUPBY Average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-Groups-with-Average-Score-Above-6-Possibly-GROUPBY/m-p/2699254#M81595</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="425362" data-lia-user-login="BeeTee" class="lia-mention lia-mention-user"&gt;BeeTee&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If your soft says&amp;nbsp;&lt;SPAN&gt;"To use special characters in a measure, enclose the entire name in brackets and add a ] to any closing brackets in the name.", then you should revise your code and look for such unusual characters (remember that some chars are &lt;EM&gt;non-printable&lt;/EM&gt;). The code I gave you works on my station perfectly. I can't help you any more than that since I don't have access to your project. You've got to figure it out by yourself.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sorry &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Aug 2022 16:33:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-Groups-with-Average-Score-Above-6-Possibly-GROUPBY/m-p/2699254#M81595</guid>
      <dc:creator>daXtreme</dc:creator>
      <dc:date>2022-08-14T16:33:42Z</dc:date>
    </item>
  </channel>
</rss>

