<?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: Ranking in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking/m-p/3478575#M132950</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the suggestion, but it does not work &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I add "Date" to the the table it's messing up with the rank.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Georgiana&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Oct 2023 10:31:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-10-16T10:31:13Z</dc:date>
    <item>
      <title>Ranking</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking/m-p/3477011#M132836</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my very first post here in the community, so I hope I'm doing it in the right way &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;I need some help with creating a dax formula for the table "Commodity" , that shows the rank for "Physical Commodity" based on the "Contracted Quantity", ignoring the impact of the "Date", like below:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;"Contracted Quantity" is a measure, and "Date" and&amp;nbsp;"Physical Commodity" are part of different tables.&lt;/P&gt;&lt;P&gt;Can you give me some suggestions?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 14 Oct 2023 20:09:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking/m-p/3477011#M132836</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-14T20:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking/m-p/3477164#M132849</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Contract Qty: = 
SUM( sales[Contracted Quantity] )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Ranking by physical commodity = 
RANK (
    SKIP,
    ALL ( 'Physical Commodity'[Physical Commodity] ),
    ORDERBY ( [Contract Qty:], DESC )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 15 Oct 2023 04:56:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking/m-p/3477164#M132849</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2023-10-15T04:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking/m-p/3478575#M132950</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the suggestion, but it does not work &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I add "Date" to the the table it's messing up with the rank.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Georgiana&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2023 10:31:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking/m-p/3478575#M132950</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-16T10:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking/m-p/3478770#M132956</link>
      <description>&lt;P&gt;hi,&amp;nbsp;&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;adjust your table name&lt;BR /&gt;try below one&lt;BR /&gt;result =&lt;BR /&gt;var a =&amp;nbsp;&lt;SPAN&gt;SUMMARIZECOLUMNS('physical commodity'[physical commodity],"cont commodity",[contracted commodity])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;var b =&amp;nbsp;SELECTCOLUMNS(a,"rankcomparing",[cont commodity])&lt;BR /&gt;return&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;rankx(b,[rankcomparing],[Contracted Quantity])&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT color="#99CC00"&gt;'physical commodity'&lt;/FONT&gt; -- is your table name so adjust it .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT color="#339966"&gt;[Contracted Quantity]&amp;nbsp;&lt;/FONT&gt; -- is your measue&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2023 12:07:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking/m-p/3478770#M132956</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2023-10-16T12:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking/m-p/3480474#M133036</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="569583" data-lia-user-login="Dangar332" class="lia-mention lia-mention-user"&gt;Dangar332&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[contracted commodity] from variable "a", I believe should be "contracted quantity", right?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In the form with "contracted quantity" the formula does not show anything &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 07:39:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking/m-p/3480474#M133036</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-17T07:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking/m-p/3482492#M133191</link>
      <description>&lt;P&gt;hi,&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;try below measure&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;rank1 =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RANK&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SKIP&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'rank'&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;ORDERBY&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'rank'&lt;/SPAN&gt;&lt;SPAN&gt;[contracted quantity]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;ASC&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 06:42:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking/m-p/3482492#M133191</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2023-10-18T06:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking/m-p/3482952#M133212</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="569583" data-lia-user-login="Dangar332" class="lia-mention lia-mention-user"&gt;Dangar332&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp; thanks for trying.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I manage to solve it with Calculate and All functions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a nice day!&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 10:05:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking/m-p/3482952#M133212</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-18T10:05:49Z</dc:date>
    </item>
  </channel>
</rss>

