<?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 not working! in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rankx-not-working/m-p/2806225#M88518</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table with 2 columns (product code, sold qty). I want to create a rank measure using Rankx that ranks the products as below:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I tried everything outhere such as using "ALL" for table argument and many other solutions and nothing seems to be working!&lt;/P&gt;</description>
    <pubDate>Thu, 29 Sep 2022 11:26:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-09-29T11:26:48Z</dc:date>
    <item>
      <title>Rankx not working!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rankx-not-working/m-p/2806225#M88518</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table with 2 columns (product code, sold qty). I want to create a rank measure using Rankx that ranks the products as below:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I tried everything outhere such as using "ALL" for table argument and many other solutions and nothing seems to be working!&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 11:26:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rankx-not-working/m-p/2806225#M88518</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-29T11:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Rankx not working!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rankx-not-working/m-p/2806330#M88532</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE needed for context transition:&lt;BR /&gt;&lt;BR /&gt;RANKX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;('Table'[Product Code]), &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;('Table'[Sold Qty])))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 29 Sep 2022 12:10:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rankx-not-working/m-p/2806330#M88532</guid>
      <dc:creator>mbamber</dc:creator>
      <dc:date>2022-09-29T12:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Rankx not working!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rankx-not-working/m-p/2806425#M88546</link>
      <description>&lt;P&gt;Thanks a lot man! it actually worked&lt;/P&gt;&lt;P&gt;I'm Just curious what difference does it make to use :&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT color="#339966"&gt;&lt;SPAN&gt;RANKX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;('Table'[Product Code]), CALCULATE(&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;('Table'[Sold Qty])))&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;instead of&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;RANKX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;('Table'[Product Code]),&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;('Table'[Sold Qty]))&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;Why did the first work and the second failed?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 12:43:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rankx-not-working/m-p/2806425#M88546</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-29T12:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Rankx not working!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rankx-not-working/m-p/2806442#M88549</link>
      <description>&lt;P&gt;This is called "context transition".&lt;BR /&gt;If instead of &lt;SPAN&gt;CALCULATE(&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;('Table'[Sold Qty]))&lt;/SPAN&gt; you would use a reference to a predefined measure [Total Sold], that would also work.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 12:47:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rankx-not-working/m-p/2806442#M88549</guid>
      <dc:creator>mbamber</dc:creator>
      <dc:date>2022-09-29T12:47:24Z</dc:date>
    </item>
  </channel>
</rss>

