<?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 function with ALL in Desktop</title>
    <link>https://community.fabric.microsoft.com/t5/Desktop/RANKX-function-with-ALL/m-p/661039#M317543</link>
    <description>&lt;P&gt;You may refer at &lt;A href="https://www.youtube.com/watch?v=W5lzIJ4qY7M" target="_self"&gt;this&lt;/A&gt; tutorial&lt;/P&gt;</description>
    <pubDate>Wed, 03 Apr 2019 13:05:06 GMT</pubDate>
    <dc:creator>mussaenda</dc:creator>
    <dc:date>2019-04-03T13:05:06Z</dc:date>
    <item>
      <title>RANKX function with ALL</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/RANKX-function-with-ALL/m-p/660999#M317516</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need your help on this please:&lt;/P&gt;&lt;P&gt;I have a Power BI model that contains the following two tables:&lt;BR /&gt;Sales(Sales_ID, sales_date, sales_amount, CustomerID)&lt;BR /&gt;Customer(CustomerID, First_name, Last_name)&lt;BR /&gt;There is a relationship between Sales and Customer.&lt;BR /&gt;I need to create a measure to rank the customers based on their total sales amount.&lt;/P&gt;&lt;P&gt;Which DAX formula should I use?&lt;/P&gt;&lt;P&gt;Is this the right formula:&amp;nbsp;RANKX(ALL(customer), SUMX(RELATEDTABLE(Sales), [Sales_amount])) ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2019 12:30:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/RANKX-function-with-ALL/m-p/660999#M317516</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-03T12:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX function with ALL</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/RANKX-function-with-ALL/m-p/661039#M317543</link>
      <description>&lt;P&gt;You may refer at &lt;A href="https://www.youtube.com/watch?v=W5lzIJ4qY7M" target="_self"&gt;this&lt;/A&gt; tutorial&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2019 13:05:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/RANKX-function-with-ALL/m-p/661039#M317543</guid>
      <dc:creator>mussaenda</dc:creator>
      <dc:date>2019-04-03T13:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX function with ALL</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/RANKX-function-with-ALL/m-p/661621#M317874</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may try below measure:&lt;/P&gt;
&lt;PRE&gt;Measure =&lt;BR /&gt;RANKX ( ALL ( Customer ), CALCULATE ( SUM ( Sales[sales_amount] ) ) )&lt;/PRE&gt;
&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2019 05:20:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/RANKX-function-with-ALL/m-p/661621#M317874</guid>
      <dc:creator>v-cherch-msft</dc:creator>
      <dc:date>2019-04-04T05:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: RANKX function with ALL</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/RANKX-function-with-ALL/m-p/697334#M336391</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need your help on this please:&lt;/P&gt;&lt;P&gt;I have a Power BI model that contains the following two tables:&lt;BR /&gt;Sales(Sales_ID, sales_date, sales_amount, CustomerID)&lt;BR /&gt;Customer(CustomerID, First_name, Last_name)&lt;BR /&gt;There is a relationship between Sales and Customer.&lt;BR /&gt;I need to create a measure to rank the customers based on their total sales amount.&lt;/P&gt;&lt;P&gt;Which DAX formula should I use?&lt;/P&gt;&lt;P&gt;Is this the right formula:&amp;nbsp;RANKX(ALL(customer), SUMX(RELATEDTABLE(Sales), [Sales_amount])) ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I think correct ans is&amp;nbsp;RANKX(ALL(Sales), SUMX(RELATEDTABLE(Customer), [Sales_amount])).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bez question is asking to create a measure in Sales Table. Correct me If I am wrong?&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 14:13:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/RANKX-function-with-ALL/m-p/697334#M336391</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-22T14:13:35Z</dc:date>
    </item>
  </channel>
</rss>

