<?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: RANKX not responding to filters or anything in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-not-responding-to-filters-or-anything/m-p/3069786#M106471</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;Well, you can do something about ties using this approach:&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/The-Mythical-DAX-Index/m-p/1093214#M528" target="_blank"&gt;The Mythical DAX Index - Microsoft Power BI Community&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Feb 2023 17:20:17 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2023-02-08T17:20:17Z</dc:date>
    <item>
      <title>RANKX not responding to filters or anything</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-not-responding-to-filters-or-anything/m-p/3069067#M106408</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to create a leaderboard based on Total Points made by each country.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used this formula&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;EM&gt;_Rank = RANKX( ALL('GSW Active'[Country]), [_Total Points], , DESC)&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The No. Column is just a bunch of 1's... Any ideas how I can make it work? I've tried for hours...&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;It did work before, not sure how I messed it up... but I did have one more issue.&lt;BR /&gt;&lt;BR /&gt;I wanted to rank based on a 2nd measure (tried multiple formulas, nothing worked), want to use "Hired/HC" as most of the time the countries have the same number of points so the No. column is repeating ranking because of that:&amp;nbsp; 1, 2, 3, 3, 3, 6, 7, 7, 9 etc.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I tried &lt;EM&gt;_Rank = RANKX( ALL('GSW Active'[Country]), [_Total Points] * [_Hired/HC], , DESC)&lt;/EM&gt;&amp;nbsp;but it doesn't apply in this case.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;All columns are from the same table, structured like this:&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Country / Month / Total Points / Hired / HC / "Hired/HC"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;There is a slicer on the page for the Month (date), not sure if it needs to be added in the measure.&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 Feb 2023 14:51:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-not-responding-to-filters-or-anything/m-p/3069067#M106408</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-08T14:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX not responding to filters or anything</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-not-responding-to-filters-or-anything/m-p/3069181#M106416</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;Is your formula actually:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;_Rank = RANKX( ALL('GSW Active'[Country]), [_Total Points], , DESC)&lt;/LI-CODE&gt;
&lt;P&gt;Note the additional paren ) after [Country]&lt;/P&gt;
&lt;P&gt;You may find this theraputic:&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/To-Bleep-with-RANKX/m-p/1042520#M452" target="_blank"&gt;To *Bleep* with RANKX! - Microsoft Power BI Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 14:06:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-not-responding-to-filters-or-anything/m-p/3069181#M106416</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2023-02-08T14:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX not responding to filters or anything</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-not-responding-to-filters-or-anything/m-p/3069662#M106455</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;So I found out that the flags were at fault... changed the measure to include flags as well:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;_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;('GSW Active'[Country], 'GSW Active'[Flags URL]), [_Total Points], ,&lt;/SPAN&gt;&lt;SPAN&gt;DESC&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;, DENSE)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;Can I can do something about those countries that have equal points?&lt;/STRONG&gt; I'd like to add the highest _Hired/HC as 2nd priority somehow.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 Feb 2023 16:38:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-not-responding-to-filters-or-anything/m-p/3069662#M106455</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-08T16:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX not responding to filters or anything</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-not-responding-to-filters-or-anything/m-p/3069786#M106471</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;Well, you can do something about ties using this approach:&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/The-Mythical-DAX-Index/m-p/1093214#M528" target="_blank"&gt;The Mythical DAX Index - Microsoft Power BI Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 17:20:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-not-responding-to-filters-or-anything/m-p/3069786#M106471</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2023-02-08T17:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX not responding to filters or anything</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-not-responding-to-filters-or-anything/m-p/3070053#M106499</link>
      <description>&lt;P&gt;My final form was:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;_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;'GSW Active'&lt;/SPAN&gt;&lt;SPAN&gt;[Country]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'GSW Active'&lt;/SPAN&gt;&lt;SPAN&gt;[Flags URL]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;[_Total Points]&lt;/SPAN&gt;&lt;SPAN&gt; + &lt;/SPAN&gt;&lt;SPAN&gt;[_Hired/HC]&lt;/SPAN&gt;&lt;SPAN&gt;, ,&lt;/SPAN&gt;&lt;SPAN&gt;DESC&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;DENSE&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Not fully happy with it... but... my head is exploding...&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Tomorrow is another day...&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 Feb 2023 19:19:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-not-responding-to-filters-or-anything/m-p/3070053#M106499</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-08T19:19:00Z</dc:date>
    </item>
  </channel>
</rss>

