<?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: Ranking results of complex measure across employees. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-results-of-complex-measure-across-employees/m-p/2753567#M85017</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="365285" data-lia-user-login="SACooper" class="lia-mention lia-mention-user"&gt;SACooper&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can get the rank using RANKX&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Employee Rank = RANKX(ALL(Table[employee_id_column]), [Performance])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Sep 2022 16:08:34 GMT</pubDate>
    <dc:creator>PaulOlding</dc:creator>
    <dc:date>2022-09-07T16:08:34Z</dc:date>
    <item>
      <title>Ranking results of complex measure across employees.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-results-of-complex-measure-across-employees/m-p/2753556#M85016</link>
      <description>&lt;P&gt;Good Afternoon Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking to end up showing the results of a measure to an employee in the form of something like you are in the top 10/10/30/40 etc. % of employees (in terms of performance against target)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Performance agaisnt target is returned by:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Performance&lt;/STRONG&gt; =&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;STRONG&gt;VAR _flexitime&lt;/STRONG&gt; = SUM('flexi UD_FullReport'[Day_TotalTime])&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;STRONG&gt;VAR _decimalHours&lt;/STRONG&gt; = _flexitime / 60&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;STRONG&gt;VAR _dayValue&lt;/STRONG&gt; = TIME(7,15,0) * 24&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;STRONG&gt;VAR _targetPerHour&lt;/STRONG&gt; = _dayValue / [Target_IPD]&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;STRONG&gt;VAR _Target&lt;/STRONG&gt; = ROUNDDOWN(_decimalHours / _targetPerHour,0)&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;RETURN&lt;/EM&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;EM&gt;DIVIDE(COUNT(CompletedItems[WorkType]) - _Target, _Target)&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;I've been fiddling around all day and to be frank have got absolutely nowhere in terms of being able to then return the performance of the selected employee as a rank or even a decentile (think this is the correct word)&amp;nbsp; of all performances.&lt;/EM&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 07 Sep 2022 16:06:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-results-of-complex-measure-across-employees/m-p/2753556#M85016</guid>
      <dc:creator>SACooper</dc:creator>
      <dc:date>2022-09-07T16:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking results of complex measure across employees.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-results-of-complex-measure-across-employees/m-p/2753567#M85017</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="365285" data-lia-user-login="SACooper" class="lia-mention lia-mention-user"&gt;SACooper&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can get the rank using RANKX&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Employee Rank = RANKX(ALL(Table[employee_id_column]), [Performance])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 16:08:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-results-of-complex-measure-across-employees/m-p/2753567#M85017</guid>
      <dc:creator>PaulOlding</dc:creator>
      <dc:date>2022-09-07T16:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking results of complex measure across employees.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-results-of-complex-measure-across-employees/m-p/2754772#M85121</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="150936" data-lia-user-login="PaulOlding" class="lia-mention lia-mention-user"&gt;PaulOlding&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for this, unfortuantely doesn't seem to work, its scoring everyone has 68 (the number of employees), I would have expected as I change the employee slicer that, this value would change. I have checked by placing another card with the performance to target value and this is changing to reflect the employee's performance correctly.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 09:20:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-results-of-complex-measure-across-employees/m-p/2754772#M85121</guid>
      <dc:creator>SACooper</dc:creator>
      <dc:date>2022-09-08T09:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking results of complex measure across employees.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-results-of-complex-measure-across-employees/m-p/2754870#M85126</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="365285" data-lia-user-login="SACooper" class="lia-mention lia-mention-user"&gt;SACooper&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you provide some example data in table form (ie not a screenshot)?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 09:32:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-results-of-complex-measure-across-employees/m-p/2754870#M85126</guid>
      <dc:creator>PaulOlding</dc:creator>
      <dc:date>2022-09-08T09:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking results of complex measure across employees.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-results-of-complex-measure-across-employees/m-p/2754874#M85127</link>
      <description>&lt;P&gt;Of course &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="150936" data-lia-user-login="PaulOlding" class="lia-mention lia-mention-user"&gt;PaulOlding&lt;/a&gt;, what would be most helpful a table of the performance results that the measure would calculate? or the tables that, that particular measure draws from?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 09:50:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-results-of-complex-measure-across-employees/m-p/2754874#M85127</guid>
      <dc:creator>SACooper</dc:creator>
      <dc:date>2022-09-08T09:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking results of complex measure across employees.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-results-of-complex-measure-across-employees/m-p/2754946#M85135</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="365285" data-lia-user-login="SACooper" class="lia-mention lia-mention-user"&gt;SACooper&lt;/a&gt;&amp;nbsp;the source data that the measure draws from.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;see this post for more:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/How-to-Get-Your-Question-Answered-Quickly/m-p/2425574#M64409" target="_blank"&gt;https://community.powerbi.com/t5/DAX-Commands-and-Tips/How-to-Get-Your-Question-Answered-Quickly/m-p/2425574#M64409&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 09:58:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-results-of-complex-measure-across-employees/m-p/2754946#M85135</guid>
      <dc:creator>PaulOlding</dc:creator>
      <dc:date>2022-09-08T09:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking results of complex measure across employees.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-results-of-complex-measure-across-employees/m-p/2755001#M85136</link>
      <description>&lt;P&gt;OK&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="150936" data-lia-user-login="PaulOlding" class="lia-mention lia-mention-user"&gt;PaulOlding&lt;/a&gt;&amp;nbsp;Here we go .....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ActiveDirectory&lt;/STRONG&gt;&lt;BR /&gt;displayName | person.cn | user.mail | user.userPrincipalName | user.manager.displayName | user.manager.userPrincipalName&lt;/P&gt;&lt;P&gt;Scott Cooper | SCooper | scott.cooper@emailaddress.com | Joe Bloggs | joe.blogs@emailaddress.com&lt;BR /&gt;Jane Doe | JADoe | jane.doe@emailaddress.com | Joe Bloggs | joe.blogs@emailaddress.com&lt;BR /&gt;John Doe | JBDoe | john.doe@eamiladdress.com | Joe Bloggs | joe.blogs@emailaddress.com&lt;BR /&gt;...&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Flexi UD_fullReport&lt;/STRONG&gt;&lt;BR /&gt;prof_adlogin | ProfFullNameCached | Day_FlexiDayDate | Day_TotalTime&lt;BR /&gt;Scooper | Scott Cooper | 01/06/2022 | 435&lt;BR /&gt;JADoe | Jane Doe | 01/06/2022 | 420&lt;BR /&gt;JBDoe | John Doe | 01/06/2022 | 500&lt;BR /&gt;Scooper | Scott Cooper | 02/06/2022 | 450&lt;BR /&gt;JADoe | Jane Doe | 02/06/2022 | 475&lt;BR /&gt;JBDoe | John Doe | 02/06/2022 | 300&lt;BR /&gt;...&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Completed Items&lt;/STRONG&gt;&lt;BR /&gt;WorkType | ProcessedDate | ProcessedBy | Time&lt;BR /&gt;EMAILOUT | 01/06/2022 | SCooper | 09:11:31&lt;BR /&gt;EMAILIN | 01/06/2022 | JADoe | 08:45:16&lt;BR /&gt;ATLCHECK | 01/06/2022 | JBDoe | 09:21:16&lt;BR /&gt;SRDRED | 01/06/2022 | SCooper | 11:11:58&lt;BR /&gt;SRDRED | 02/06/2022 | JBdoe | 10:19:16&lt;BR /&gt;....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;**currently target is a flat 43 items per day (7 hours 15 minutes) but this will be developed to be more dynamic taking into account departmental actvitity and would be stored for the user in the measure &lt;STRONG&gt;[Target_IPD]&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 10:19:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-results-of-complex-measure-across-employees/m-p/2755001#M85136</guid>
      <dc:creator>SACooper</dc:creator>
      <dc:date>2022-09-08T10:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking results of complex measure across employees.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-results-of-complex-measure-across-employees/m-p/2755156#M85148</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="365285" data-lia-user-login="SACooper" class="lia-mention lia-mention-user"&gt;SACooper&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Here's the results I get with the sample data, these measures and this model&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Performance =&lt;/P&gt;
&lt;P&gt;VAR _flexitime = SUM('flexi UD_FullReport'[Day_TotalTime])&lt;/P&gt;
&lt;P&gt;VAR _decimalHours = _flexitime / 60 VAR _dayValue = TIME(7,15,0) * 24&lt;/P&gt;
&lt;P&gt;VAR _targetPerHour = _dayValue / 43 // [Target_IPD]&lt;/P&gt;
&lt;P&gt;VAR _Target = ROUNDDOWN(_decimalHours / _targetPerHour,0)&lt;/P&gt;
&lt;P&gt;RETURN DIVIDE(COUNT('Completed Items'[WorkType]) - _Target, _Target)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Employee Rank = &lt;/SPAN&gt;&lt;SPAN&gt;RANKX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ActiveDirectory[displayName]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;[Performance]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;img /&gt;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 11:00:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-results-of-complex-measure-across-employees/m-p/2755156#M85148</guid>
      <dc:creator>PaulOlding</dc:creator>
      <dc:date>2022-09-08T11:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking results of complex measure across employees.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-results-of-complex-measure-across-employees/m-p/2755159#M85149</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 11:00:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-results-of-complex-measure-across-employees/m-p/2755159#M85149</guid>
      <dc:creator>PaulOlding</dc:creator>
      <dc:date>2022-09-08T11:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking results of complex measure across employees.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-results-of-complex-measure-across-employees/m-p/2755162#M85150</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 11:01:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-results-of-complex-measure-across-employees/m-p/2755162#M85150</guid>
      <dc:creator>PaulOlding</dc:creator>
      <dc:date>2022-09-08T11:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking results of complex measure across employees.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-results-of-complex-measure-across-employees/m-p/2755166#M85151</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 11:02:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-results-of-complex-measure-across-employees/m-p/2755166#M85151</guid>
      <dc:creator>PaulOlding</dc:creator>
      <dc:date>2022-09-08T11:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking results of complex measure across employees.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-results-of-complex-measure-across-employees/m-p/2755168#M85152</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="150936" data-lia-user-login="PaulOlding" class="lia-mention lia-mention-user"&gt;PaulOlding&lt;/a&gt;&amp;nbsp;Thank you it obviously works there must be something that I thought was unrelated, actually having an unintended influence ... i'll have a dig through ... chances are its in my data model somewhere.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your time - really appreciate it.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 11:02:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-results-of-complex-measure-across-employees/m-p/2755168#M85152</guid>
      <dc:creator>SACooper</dc:creator>
      <dc:date>2022-09-08T11:02:46Z</dc:date>
    </item>
  </channel>
</rss>

