<?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: Rank Based on Measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rank-Based-on-Measure/m-p/4007277#M156929</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="481035" data-lia-user-login="JimSales81" class="lia-mention lia-mention-user"&gt;JimSales81&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use RANK to do this, and it is fully dynamic an example of this would be below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;RANK(DENSE, ALLSELECTED( **** ) , ORDERBY( **** ,ASC), LAST, PARTITIONBY( **** ))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Inside the ALLSELECTED, you must put any columns you would like to Rank by, if you are ranking people then this column must go here - and any other column you intend to use in your visual.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Inside the ORDERBY is the measure you wish to rank.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PARTITIONBY is optional, and gives you the freedom to reset the rank at certain points, for example you wanted a rank within each Area Director. If you do not need to break your rank at certain parts, simply remove:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;, PARTITIONBY( **** )&lt;/LI-CODE&gt;&lt;P&gt;If this works for you, please mark it as the solution.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jun 2024 15:53:39 GMT</pubDate>
    <dc:creator>mark_endicott</dc:creator>
    <dc:date>2024-06-24T15:53:39Z</dc:date>
    <item>
      <title>Rank Based on Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rank-Based-on-Measure/m-p/4007232#M156922</link>
      <description>&lt;P&gt;I'm putting together a stack rank for my sales dept.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have 10 measures, things like:&lt;/P&gt;&lt;P&gt;1.) Total Sales&lt;/P&gt;&lt;P&gt;2.) New Customers&lt;/P&gt;&lt;P&gt;3.) % to Quota&lt;/P&gt;&lt;P&gt;4.) % of Total Sales is our Newest Product&lt;/P&gt;&lt;P&gt;Etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I now want to rank each measure 1st to last and total the Rank for each Measure.&amp;nbsp; The person with the lowest combined score will be ranked first.&amp;nbsp; How can i do it? Can i make it dynamic?&amp;nbsp; I.e. use the same Rank Measure to rank the Area Directors, the Regional Directors, and the Territory Sales People ?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 15:23:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rank-Based-on-Measure/m-p/4007232#M156922</guid>
      <dc:creator>JimSales81</dc:creator>
      <dc:date>2024-06-24T15:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Based on Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rank-Based-on-Measure/m-p/4007277#M156929</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="481035" data-lia-user-login="JimSales81" class="lia-mention lia-mention-user"&gt;JimSales81&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use RANK to do this, and it is fully dynamic an example of this would be below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;RANK(DENSE, ALLSELECTED( **** ) , ORDERBY( **** ,ASC), LAST, PARTITIONBY( **** ))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Inside the ALLSELECTED, you must put any columns you would like to Rank by, if you are ranking people then this column must go here - and any other column you intend to use in your visual.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Inside the ORDERBY is the measure you wish to rank.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PARTITIONBY is optional, and gives you the freedom to reset the rank at certain points, for example you wanted a rank within each Area Director. If you do not need to break your rank at certain parts, simply remove:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;, PARTITIONBY( **** )&lt;/LI-CODE&gt;&lt;P&gt;If this works for you, please mark it as the solution.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 15:53:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rank-Based-on-Measure/m-p/4007277#M156929</guid>
      <dc:creator>mark_endicott</dc:creator>
      <dc:date>2024-06-24T15:53:39Z</dc:date>
    </item>
  </channel>
</rss>

