<?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: Top 5 with tiebreaker inconsistencies in DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-5-with-tiebreaker-inconsistencies-in-DAX/m-p/4781448#M183098</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="490030" data-lia-user-login="Irwan" class="lia-mention lia-mention-user"&gt;Irwan&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;So after writing up a very detailed explanation, and putting together a file with just some sample data, it's performing as expected, which tells me there has to be some other filter context or condition going on where I'm using this that's impacting the results.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;It's a good reminder to isolate things that are going wrong, to check if it's working as expected without any other interference.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Jul 2025 13:15:19 GMT</pubDate>
    <dc:creator>AnnieV</dc:creator>
    <dc:date>2025-07-30T13:15:19Z</dc:date>
    <item>
      <title>Top 5 with tiebreaker inconsistencies in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-5-with-tiebreaker-inconsistencies-in-DAX/m-p/4780428#M183071</link>
      <description>&lt;P&gt;Goal: Create a table visual that contains 5 survey questions, ranked by a score called the PriorityIndex, with ties broken by a GapToGoal value.&lt;BR /&gt;&lt;BR /&gt;Sort is on PriorityIndex value DESC, so highest number is rank 1.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Tiebreaker is on GapToGoal value, which can be a negative number if the question is performing under goal, or positive if it is performing over goal.&amp;nbsp; While not impossible, a question is highly unlikely to have exactly the same PriorityIndex and GapToGoal.&amp;nbsp;&lt;BR /&gt;A lower number would be the "winner" in the tie break, so two questions with PriorityIndex of 35, and one has a GapToGoal of -4.2 and the other -3.8, the question with the -4.2 gap is the "winner" and would rank 1st before the other.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;My current measure for Top5Rank is:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Top5Rank =&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;RANKX(&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; ALLSELECTED('NewPriorityIndex'),&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; CALCULATE(&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MAX('NewPriorityIndex'[PriorityIndex]) * 1000000&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - [Gap to Goal] &amp;nbsp;-- Gap to Goal is a measure, smaller is better&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; ),&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; ,&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; DESC,&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; DENSE&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;Then I have a filter visual as:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Top5Filter =&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;IF([Top5Rank] &amp;lt;= 5, 1, 0)&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;That is set to "is 1"&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;The current sample I'm reviewing does display only items with rank 1 to 5, but there's multiples, the Top5Rank values are 1,2,3,3,4,4,5,5,5,5,5, so I get far more than 5 items.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If I change DENSE to SKIP in the Top5Rank measure, I end up with 4 items, rank 1, 4, 5, 5 on the same list, given it will only display those equal to or less than 5, the rank list looks like: 1,4,5,5,10,10,24...&lt;BR /&gt;&lt;BR /&gt;I have done troubleshooting by creating a RankScore measure showing the value calculated in the Top5Rank measure, which shows where a problem in value sorting, but not sure how to correct for it (values with the SKIP version of the Top5Rank measure):&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Rank 1 : 42,000,001.37&lt;BR /&gt;Rank 4 : 41,999,997.23&lt;BR /&gt;Rank 5 : 40,000,000.39&lt;BR /&gt;Rank 5: 40,999,999.60&amp;nbsp; &amp;lt;&amp;lt; Should be third in this list&lt;BR /&gt;Rank 10: 39,999,996.23 &amp;lt;&amp;lt; Should be sixth in this list&lt;BR /&gt;Rank 10: 39,999,998.45 &amp;lt;&amp;lt; Should be fifth in this list&lt;BR /&gt;&lt;BR /&gt;Working with AI there's been various suggestions about context, but nothing has made a correct change.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thoughts?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2025 21:26:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-5-with-tiebreaker-inconsistencies-in-DAX/m-p/4780428#M183071</guid>
      <dc:creator>AnnieV</dc:creator>
      <dc:date>2025-07-29T21:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Top 5 with tiebreaker inconsistencies in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-5-with-tiebreaker-inconsistencies-in-DAX/m-p/4780477#M183072</link>
      <description>&lt;P&gt;hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="903287" data-lia-user-login="AnnieV" class="lia-mention lia-mention-user"&gt;AnnieV&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the same rank means you have exact same value in your expression.&lt;/P&gt;
&lt;P&gt;you need another conditional to define which is higher when there are same values, then&amp;nbsp;using if statement when same values occur with that pre-defined condition.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;otherwise please share your sample data that represent your original data including your expected/desired outcome (remove any confidential information).&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2025 22:26:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-5-with-tiebreaker-inconsistencies-in-DAX/m-p/4780477#M183072</guid>
      <dc:creator>Irwan</dc:creator>
      <dc:date>2025-07-29T22:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: Top 5 with tiebreaker inconsistencies in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-5-with-tiebreaker-inconsistencies-in-DAX/m-p/4781448#M183098</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="490030" data-lia-user-login="Irwan" class="lia-mention lia-mention-user"&gt;Irwan&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;So after writing up a very detailed explanation, and putting together a file with just some sample data, it's performing as expected, which tells me there has to be some other filter context or condition going on where I'm using this that's impacting the results.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;It's a good reminder to isolate things that are going wrong, to check if it's working as expected without any other interference.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2025 13:15:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-5-with-tiebreaker-inconsistencies-in-DAX/m-p/4781448#M183098</guid>
      <dc:creator>AnnieV</dc:creator>
      <dc:date>2025-07-30T13:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Top 5 with tiebreaker inconsistencies in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-5-with-tiebreaker-inconsistencies-in-DAX/m-p/4781961#M183115</link>
      <description>&lt;P&gt;hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="903287" data-lia-user-login="AnnieV" class="lia-mention lia-mention-user"&gt;AnnieV&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;glad you solved the problem.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2025 22:24:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Top-5-with-tiebreaker-inconsistencies-in-DAX/m-p/4781961#M183115</guid>
      <dc:creator>Irwan</dc:creator>
      <dc:date>2025-07-30T22:24:51Z</dc:date>
    </item>
  </channel>
</rss>

