<?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 Help me about RANKX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-about-RANKX/m-p/3317536#M124141</link>
    <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to create a RankX measure to do ranking about dept of customers. But when i wrote:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;RANKX = RANKX(ALL('AR by KH'[Customer]),SUM('AR by KH'[Dept]), , DESC)&lt;/LI-CODE&gt;&lt;P&gt;It's not working, each row gets a result is 1&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;But when I change my code to:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;RANKX  = RANKX(ALL('AR by KH'[Customer]), CALCULATE(SUM('AR by KH'[Dept])), , DESC)&lt;/LI-CODE&gt;&lt;P&gt;It's working for this sentence&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;So my question is: CALCULATE(SUM('AR by KH'[Dept])) and SUM('AR by KH'[Dept]) what is different? Because as I knew, when using Calculate without filter, the result will be the same with SUM()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jul 2023 04:27:22 GMT</pubDate>
    <dc:creator>neonguyen1803</dc:creator>
    <dc:date>2023-07-06T04:27:22Z</dc:date>
    <item>
      <title>Help me about RANKX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-about-RANKX/m-p/3317536#M124141</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to create a RankX measure to do ranking about dept of customers. But when i wrote:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;RANKX = RANKX(ALL('AR by KH'[Customer]),SUM('AR by KH'[Dept]), , DESC)&lt;/LI-CODE&gt;&lt;P&gt;It's not working, each row gets a result is 1&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;But when I change my code to:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;RANKX  = RANKX(ALL('AR by KH'[Customer]), CALCULATE(SUM('AR by KH'[Dept])), , DESC)&lt;/LI-CODE&gt;&lt;P&gt;It's working for this sentence&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;So my question is: CALCULATE(SUM('AR by KH'[Dept])) and SUM('AR by KH'[Dept]) what is different? Because as I knew, when using Calculate without filter, the result will be the same with SUM()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 04:27:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-about-RANKX/m-p/3317536#M124141</guid>
      <dc:creator>neonguyen1803</dc:creator>
      <dc:date>2023-07-06T04:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Help me about RANKX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-about-RANKX/m-p/3317603#M124145</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;What CALCULATE does above is transition the row context to the filter context inside the measure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In above, if the measure,&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SUM Measure = SUM('AR by KH'[Dept])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;is written first,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and then when you create a RANKX measure like below,&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;RANKX  = RANKX(ALL('AR by KH'[Customer]), [SUM Measure], , DESC)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it will show the expected result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 05:34:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-me-about-RANKX/m-p/3317603#M124145</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2023-07-06T05:34:22Z</dc:date>
    </item>
  </channel>
</rss>

