<?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 RANKX ignoring Order and Ties in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-ignoring-Order-and-Ties/m-p/2230108#M53189</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've used this piece of code from the answer linked almost exactly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;SumPointsRank = 
Var summry=SUMMARIZE(ALLSELECTED(Results),[Player],"Sum",SUM(Results[Points]))
var tmp=ADDCOLUMNS(summry,"RNK",RANKX(summry,[Sum],,DESC,Dense))
return
MAXX(FILTER(tmp,[Player]=SELECTEDVALUE(Results[Player])),[RNK])&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Ranking-a-measure/m-p/539066" target="_blank"&gt;Solved: Ranking a measure - Microsoft Power BI Community&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;The problem I'm having is that it appears to be stuck at ASC and Dense no matter what I enter there. I'd like it to be DESC and Skip, but it just ignores those commands and uses ASC and Dense almost as a default.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this a problem anyone else has seen and knows how to fix?&lt;/P&gt;</description>
    <pubDate>Thu, 09 Dec 2021 10:53:57 GMT</pubDate>
    <dc:creator>edwardburton</dc:creator>
    <dc:date>2021-12-09T10:53:57Z</dc:date>
    <item>
      <title>RANKX ignoring Order and Ties</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-ignoring-Order-and-Ties/m-p/2230108#M53189</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've used this piece of code from the answer linked almost exactly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;SumPointsRank = 
Var summry=SUMMARIZE(ALLSELECTED(Results),[Player],"Sum",SUM(Results[Points]))
var tmp=ADDCOLUMNS(summry,"RNK",RANKX(summry,[Sum],,DESC,Dense))
return
MAXX(FILTER(tmp,[Player]=SELECTEDVALUE(Results[Player])),[RNK])&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Ranking-a-measure/m-p/539066" target="_blank"&gt;Solved: Ranking a measure - Microsoft Power BI Community&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;The problem I'm having is that it appears to be stuck at ASC and Dense no matter what I enter there. I'd like it to be DESC and Skip, but it just ignores those commands and uses ASC and Dense almost as a default.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this a problem anyone else has seen and knows how to fix?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 10:53:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-ignoring-Order-and-Ties/m-p/2230108#M53189</guid>
      <dc:creator>edwardburton</dc:creator>
      <dc:date>2021-12-09T10:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX ignoring Order and Ties</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-ignoring-Order-and-Ties/m-p/2230191#M53197</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="339004" data-lia-user-login="edwardburton" class="lia-mention lia-mention-user"&gt;edwardburton&lt;/a&gt; , what is the expected output&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try like&lt;/P&gt;
&lt;P&gt;RANKX(allselected(Results[Player]),calculate(SUM(Results[Points])),,DESC,skip)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you share sample data and sample output in table format? &lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 11:49:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-ignoring-Order-and-Ties/m-p/2230191#M53197</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-12-09T11:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX ignoring Order and Ties</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-ignoring-Order-and-Ties/m-p/2239286#M53561</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="339004" data-lia-user-login="edwardburton" class="lia-mention lia-mention-user"&gt;edwardburton&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Try the second measure&lt;/P&gt;
&lt;PRE&gt;Measure2=&lt;BR /&gt;RANKX(ALLSELECTED(Results),CALCULATE(SUM(Results[Points]),ALLEXCEPT(Results,Results[Player])),,DESC,Dense)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this doesn't work, please share your sample pbix file's link here, then I can try to look into it to come up with a more accurate measure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Zeon Zheng&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 02:40:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-ignoring-Order-and-Ties/m-p/2239286#M53561</guid>
      <dc:creator>v-angzheng-msft</dc:creator>
      <dc:date>2021-12-15T02:40:04Z</dc:date>
    </item>
  </channel>
</rss>

