<?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 System Error in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-System-Error/m-p/3233692#M118749</link>
    <description>&lt;P&gt;You can simulate a result. I don't quite understand what you mean.&lt;/P&gt;</description>
    <pubDate>Sat, 13 May 2023 10:33:20 GMT</pubDate>
    <dc:creator>jiaopengzi</dc:creator>
    <dc:date>2023-05-13T10:33:20Z</dc:date>
    <item>
      <title>Ranking System Error</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-System-Error/m-p/3227863#M118287</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have a question regarding ranking salespeople based on their total sales across different cities using DAX. I'm aiming to have a consistent ranking for each salesperson, regardless of any filters applied. Currently, my ranking system functions correctly when filtering by year or city. However, I've noticed that the ranking changes when I filter for a specific salesperson. For instance, Person A is ranked 34 overall, but when I apply a filter to only display Person A, their rank changes to 21. I'm using the following DAX code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Rank = RANKX ( ALL('SinaA'[Name]), CALCULATE (SUM('SinaA'[Sales]), ALLEXCEPT(SinaA, SinaA[Name],SinaA[City], SinaA[Year])), , DESC, Dense )&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could you provide some guidance on why this might be occurring and how to maintain a consistent ranking, regardless of the filter applied?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 22:41:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-System-Error/m-p/3227863#M118287</guid>
      <dc:creator>SinaA</dc:creator>
      <dc:date>2023-05-09T22:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking System Error</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-System-Error/m-p/3228264#M118328</link>
      <description>&lt;P&gt;is it possible to share some sample data please?&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 07:11:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-System-Error/m-p/3228264#M118328</guid>
      <dc:creator>eliasayyy</dc:creator>
      <dc:date>2023-05-10T07:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking System Error</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-System-Error/m-p/3229343#M118446</link>
      <description>&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please use the link to DL the sample data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/scl/fi/yiqvlasvem3ua91bju4a0/Sales-Data-Sample.xlsx?dl=0&amp;amp;rlkey=xw9ai7is06l39hnm109jhrn90" target="_blank"&gt;https://www.dropbox.com/scl/fi/yiqvlasvem3ua91bju4a0/Sales-Data-Sample.xlsx?dl=0&amp;amp;rlkey=xw9ai7is06l39hnm109jhrn90&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 19:32:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-System-Error/m-p/3229343#M118446</guid>
      <dc:creator>SinaA</dc:creator>
      <dc:date>2023-05-10T19:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking System Error</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-System-Error/m-p/3229683#M118470</link>
      <description>&lt;P&gt;You can use the new function: &lt;STRONG&gt;RANK&lt;/STRONG&gt;&lt;BR /&gt;to see if it is what you want, the first picture is unfiltered, and the second picture is added with a slicer filter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;_RANK = RANK ( DENSE, ALL ( Sales ), ORDERBY ( [Sales], DESC ) )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 02:50:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-System-Error/m-p/3229683#M118470</guid>
      <dc:creator>jiaopengzi</dc:creator>
      <dc:date>2023-05-11T02:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking System Error</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-System-Error/m-p/3233282#M118713</link>
      <description>&lt;P&gt;I appreciate your suggestion. However, I would like to rank salespeople (A, B,....) based on their total sales. Additionally, I would like to rank them when filtering for City or Category.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 17:12:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-System-Error/m-p/3233282#M118713</guid>
      <dc:creator>SinaA</dc:creator>
      <dc:date>2023-05-12T17:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking System Error</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-System-Error/m-p/3233692#M118749</link>
      <description>&lt;P&gt;You can simulate a result. I don't quite understand what you mean.&lt;/P&gt;</description>
      <pubDate>Sat, 13 May 2023 10:33:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-System-Error/m-p/3233692#M118749</guid>
      <dc:creator>jiaopengzi</dc:creator>
      <dc:date>2023-05-13T10:33:20Z</dc:date>
    </item>
  </channel>
</rss>

