<?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 in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX/m-p/3051352#M105108</link>
    <description>&lt;P&gt;Hello All!&amp;nbsp;&lt;BR /&gt;I was Just Trying out Rankx fx.&lt;BR /&gt;I noticed that the function works fine if a measure is given as the argument for expression but, fails to work as per expectation when the aggregation of a column is passed as an expression.&lt;BR /&gt;(e.g., Context is Derive Rank based on Salary of Employees&amp;nbsp; if, we pass a measure "total salary" which is nothing but sum of existing column salary the function returns the expected output however, if we pass sum of salary instead of measure the rankx fails)&amp;nbsp;&lt;BR /&gt;I assume in case of passing aggregated column, it takes into account the total and returns a single rank but it works fine with measures and this is what I am not able to understand.&amp;nbsp;&lt;BR /&gt;Any explaination on this ?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 30 Jan 2023 23:53:59 GMT</pubDate>
    <dc:creator>Kushalappa_BE</dc:creator>
    <dc:date>2023-01-30T23:53:59Z</dc:date>
    <item>
      <title>RANKX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX/m-p/3051352#M105108</link>
      <description>&lt;P&gt;Hello All!&amp;nbsp;&lt;BR /&gt;I was Just Trying out Rankx fx.&lt;BR /&gt;I noticed that the function works fine if a measure is given as the argument for expression but, fails to work as per expectation when the aggregation of a column is passed as an expression.&lt;BR /&gt;(e.g., Context is Derive Rank based on Salary of Employees&amp;nbsp; if, we pass a measure "total salary" which is nothing but sum of existing column salary the function returns the expected output however, if we pass sum of salary instead of measure the rankx fails)&amp;nbsp;&lt;BR /&gt;I assume in case of passing aggregated column, it takes into account the total and returns a single rank but it works fine with measures and this is what I am not able to understand.&amp;nbsp;&lt;BR /&gt;Any explaination on this ?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2023 23:53:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX/m-p/3051352#M105108</guid>
      <dc:creator>Kushalappa_BE</dc:creator>
      <dc:date>2023-01-30T23:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX/m-p/3051382#M105111</link>
      <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="505329" data-lia-user-login="Kushalappa_BE" class="lia-mention lia-mention-user"&gt;Kushalappa_BE&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;a measure is always surrounded by a CALCULATE implicitely, so try to replace it with &lt;STRONG&gt;CALCULATE&lt;/STRONG&gt;(SUM(Table[Column]))&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 00:52:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/RANKX/m-p/3051382#M105111</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-01-31T00:52:55Z</dc:date>
    </item>
  </channel>
</rss>

