<?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 seems to be ranking on absolute value in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-seems-to-be-ranking-on-absolute-value/m-p/924108#M9232</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="137611" data-lia-user-login="JarroVGIT" class="lia-mention lia-mention-user"&gt;JarroVGIT&lt;/a&gt;&amp;nbsp;, thanks again for responding to my post, I was able to finally figure out the issue (user error). The problem was that the measure I am ranking was mistakenly set as a "text" data type, once I changed that to a decimal number data type the RANX measure started working as expected.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Feb 2020 14:39:45 GMT</pubDate>
    <dc:creator>eeurton</dc:creator>
    <dc:date>2020-02-06T14:39:45Z</dc:date>
    <item>
      <title>RANKX seems to be ranking on absolute value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-seems-to-be-ranking-on-absolute-value/m-p/918199#M8952</link>
      <description>&lt;P&gt;I am using the formula below to create a ranking measure&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Rank AvT = RANKX(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FILTER(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ALL('Fact - CIM Food Usage Summary'),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'Fact - CIM Food Usage Summary'[CONCEPT] = EARLIER('Fact - CIM Food Usage Summary'[CONCEPT])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;amp;&amp;amp; 'Fact - CIM Food Usage Summary'[YR_MO_NBR] = EARLIER('Fact - CIM Food Usage Summary'[YR_MO_NBR])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;amp;&amp;amp; 'Fact - CIM Food Usage Summary'[CNT_TYP_CD] = EARLIER('Fact - CIM Food Usage Summary'[CNT_TYP_CD])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;amp;&amp;amp; 'Fact - CIM Food Usage Summary'[AVT_INCL_FLG] = "Y"&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[AVT_PCT_USE],,ASC,Dense)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;It is not quite working as expected, the issue is that it seems to be ranking on absolute value rather than the actual value (see below) I would expect the -1.3% to be ranked first, not third, can someone offer a solution?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;img /&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 31 Jan 2020 18:05:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-seems-to-be-ranking-on-absolute-value/m-p/918199#M8952</guid>
      <dc:creator>eeurton</dc:creator>
      <dc:date>2020-01-31T18:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX seems to be ranking on absolute value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-seems-to-be-ranking-on-absolute-value/m-p/918393#M8963</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="114704" data-lia-user-login="eeurton" class="lia-mention lia-mention-user"&gt;eeurton&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;I love RANKX questions (I don't know why, I just like the logic I guess :P) but they are very hard to trouble shoot without having any data to replicate the issue. For example, you are using a measure to rank rows in a calculated column (I assume based on your EARLIER() statements), but you didn't give us the DAX of said measure.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If at all possible, would you be able to share either the original PBIX or (if that contains confidential information) a PBIX with dummy data that still reflex your issue? If you don't want to share publicly, you can share by PM and I will have a look tomorrow. I'm sure I can figure this out for you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Djerro123&lt;/P&gt;&lt;P&gt;-------------------------------&lt;/P&gt;&lt;P&gt;If this answered your question, please &lt;STRONG&gt;mark it as the Solution&lt;/STRONG&gt;. This also helps others to find what they are looking for.&lt;/P&gt;&lt;P&gt;Keep those &lt;STRONG&gt;thumbs up&lt;/STRONG&gt; coming! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2020 22:11:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-seems-to-be-ranking-on-absolute-value/m-p/918393#M8963</guid>
      <dc:creator>JarroVGIT</dc:creator>
      <dc:date>2020-01-31T22:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX seems to be ranking on absolute value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-seems-to-be-ranking-on-absolute-value/m-p/918583#M8977</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="137611" data-lia-user-login="JarroVGIT" class="lia-mention lia-mention-user"&gt;JarroVGIT&lt;/a&gt;&amp;nbsp;thanks for responding to my post! The measure that I am ranking (AVT_PCT_USE) is a calculated column in one of my tables, the formula is below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if [CNT_TYP_CD] = "PERIOD" then (([OVRD_VAL_VRNC_AMT] + [SAP_COGS_EXP_AMT] - [VAL_ACT_UNIT_USED_AMT] - [SAP_SE_AMT] - [ROCK_SE_TOTAL_FOOD_COST]) / [SAP_COGS_EXP_AMT]) else [OVRD_VAL_VRNC_AMT] / [VAL_ACT_UNIT_USED_AMT])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if we need a pbix with data I will need to get back to you on Monday as I will need to restrict the model down to a historical period that is not sensitive and then refresh the data.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Feb 2020 12:44:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-seems-to-be-ranking-on-absolute-value/m-p/918583#M8977</guid>
      <dc:creator>eeurton</dc:creator>
      <dc:date>2020-02-01T12:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX seems to be ranking on absolute value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-seems-to-be-ranking-on-absolute-value/m-p/924108#M9232</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="137611" data-lia-user-login="JarroVGIT" class="lia-mention lia-mention-user"&gt;JarroVGIT&lt;/a&gt;&amp;nbsp;, thanks again for responding to my post, I was able to finally figure out the issue (user error). The problem was that the measure I am ranking was mistakenly set as a "text" data type, once I changed that to a decimal number data type the RANX measure started working as expected.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 14:39:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX-seems-to-be-ranking-on-absolute-value/m-p/924108#M9232</guid>
      <dc:creator>eeurton</dc:creator>
      <dc:date>2020-02-06T14:39:45Z</dc:date>
    </item>
  </channel>
</rss>

