<?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: Highest score based on 2 variables in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Highest-score-based-on-2-variables/m-p/2761852#M85634</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="439105" data-lia-user-login="hans263" class="lia-mention lia-mention-user"&gt;hans263&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;See attached modified file&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;% of Highest Score = 
VAR Numerator = [Count of Highest Scores]
VAR Denominator = 
    COUNTROWS ( 
        CALCULATETABLE ( 
            VALUES ( 'Table'[Staffmember] ), 
            ALLEXCEPT ( 'Table', 'Table'[Department] ) 
        ) 
    )
VAR Result = DIVIDE ( Numerator, Denominator )
RETURN
    Result&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 12 Sep 2022 12:20:52 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2022-09-12T12:20:52Z</dc:date>
    <item>
      <title>Highest score based on 2 variables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Highest-score-based-on-2-variables/m-p/2757574#M85321</link>
      <description>&lt;P&gt;Hi experts, I have an issue regarding a table with staffmembers, training they followed and the scores given for each training.&lt;/P&gt;&lt;P&gt;Table looks like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The result should be that for each department the number of maximimum(highest) scores are returned (highest score for each staffmember), and also a sum of maximum scores per department. I have used RANKX but there is an issue regarding strings and integerrs. Very anxious to see what solutions are available.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 08:19:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Highest-score-based-on-2-variables/m-p/2757574#M85321</guid>
      <dc:creator>hans263</dc:creator>
      <dc:date>2022-09-09T08:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Highest score based on 2 variables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Highest-score-based-on-2-variables/m-p/2757699#M85334</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="439105" data-lia-user-login="hans263" class="lia-mention lia-mention-user"&gt;hans263&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please refer to attached sample file with the solution&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Count of Highest Scores = 
VAR CurrentScore = SELECTEDVALUE ( 'Table'[TrainingTypescore] )
RETURN
    COUNTROWS (
        FILTER (
            VALUES ( 'Table'[Staffmember] ),
            CALCULATE ( MAX ( 'Table'[TrainingTypescore] ), ALL ('Table'[NameTrainingFollowed], 'Table'[TrainingTypescore] ) )
                = CurrentScore
        )
    ) + 0&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 09 Sep 2022 08:51:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Highest-score-based-on-2-variables/m-p/2757699#M85334</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-09-09T08:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Highest score based on 2 variables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Highest-score-based-on-2-variables/m-p/2757978#M85360</link>
      <description>&lt;P&gt;Yep. This works great! Many thx.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 10:37:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Highest-score-based-on-2-variables/m-p/2757978#M85360</guid>
      <dc:creator>hans263</dc:creator>
      <dc:date>2022-09-09T10:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Highest score based on 2 variables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Highest-score-based-on-2-variables/m-p/2758097#M85372</link>
      <description>&lt;P&gt;Additionale question: Current Score holds the maximum of found results. If I want to use that value, how can I get this back into a Column? Or otherwise, the number of unique staff members for echt department. OPS=1, Sales=3&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 11:47:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Highest-score-based-on-2-variables/m-p/2758097#M85372</guid>
      <dc:creator>hans263</dc:creator>
      <dc:date>2022-09-09T11:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: Highest score based on 2 variables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Highest-score-based-on-2-variables/m-p/2758141#M85376</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="439105" data-lia-user-login="hans263" class="lia-mention lia-mention-user"&gt;hans263&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Modified file attached&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Count of Highest Scores = 
SUMX ( 
    VALUES ( 'Table'[NameTrainingFollowed] ),
    CALCULATE (
        VAR CurrentScore = SELECTEDVALUE ( 'Table'[TrainingTypescore] )
        RETURN
            COUNTROWS (
                FILTER (
                    VALUES ( 'Table'[Staffmember] ),
                    CALCULATE ( MAX ( 'Table'[TrainingTypescore] ), ALL ('Table'[NameTrainingFollowed], 'Table'[TrainingTypescore] ) )
                        = CurrentScore
                )
            ) + 0
    )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 09 Sep 2022 12:16:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Highest-score-based-on-2-variables/m-p/2758141#M85376</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-09-09T12:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Highest score based on 2 variables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Highest-score-based-on-2-variables/m-p/2761568#M85616</link>
      <description>&lt;P&gt;Awesome. Last question. I finaly want to show the response. So in fact Count of Highest Score devided by the total number of staff members for a give department in %.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2022 10:13:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Highest-score-based-on-2-variables/m-p/2761568#M85616</guid>
      <dc:creator>hans263</dc:creator>
      <dc:date>2022-09-12T10:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Highest score based on 2 variables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Highest-score-based-on-2-variables/m-p/2761852#M85634</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="439105" data-lia-user-login="hans263" class="lia-mention lia-mention-user"&gt;hans263&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;See attached modified file&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;% of Highest Score = 
VAR Numerator = [Count of Highest Scores]
VAR Denominator = 
    COUNTROWS ( 
        CALCULATETABLE ( 
            VALUES ( 'Table'[Staffmember] ), 
            ALLEXCEPT ( 'Table', 'Table'[Department] ) 
        ) 
    )
VAR Result = DIVIDE ( Numerator, Denominator )
RETURN
    Result&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 12 Sep 2022 12:20:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Highest-score-based-on-2-variables/m-p/2761852#M85634</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-09-12T12:20:52Z</dc:date>
    </item>
  </channel>
</rss>

