<?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: Rank Measure according to categories in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rank-Measure-according-to-categories/m-p/1713978#M35372</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="289608" data-lia-user-login="Power_MN" class="lia-mention lia-mention-user"&gt;Power_MN&lt;/a&gt;&amp;nbsp;, measure rank is context-sensitive. if you add any other than&amp;nbsp;&lt;SPAN&gt;product like&amp;nbsp;product id, it will become 1.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Geography Rank = RANKX(all(Geography[City]),[Sales]) &lt;BR /&gt;Geography Rank = RANKX(all(Geography),[Sales])&lt;BR /&gt;City and ID Rank = RANKX(all(Geography[City],Geography[City Id]),[Sales])&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In these examples with city id , first one will give rank&amp;nbsp; 1 only.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Try to give table name to combination of columns&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Mar 2021 12:55:30 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2021-03-10T12:55:30Z</dc:date>
    <item>
      <title>Rank Measure according to categories</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rank-Measure-according-to-categories/m-p/1713477#M35360</link>
      <description>Hello everybody, I am faced with a problem with which I cannot make any progress, because I have not found a solution after many researches. So I hope that one of you can help me with this. Rank = RANKX(Table1,Table1[Quality],,DESC,Dense) -&amp;gt; this function doesn't work for me I have a dataset (see table). This should be ranked according to supplier and product. After that, I should be able to have a ranking for each product, showing which supplier is the best and which is the worst. Supplier Product Quality Rank A chair 80% 2 A desk 90% 1 B bed 100% 1 C chair 75% 3 B desk 40% 3 A bed 40% 3 C desk 85% 2 B chair 100% 1 C bed 65% 2 Thank you for your help!</description>
      <pubDate>Wed, 10 Mar 2021 10:54:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rank-Measure-according-to-categories/m-p/1713477#M35360</guid>
      <dc:creator>Power_MN</dc:creator>
      <dc:date>2021-03-10T10:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Measure according to categories</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rank-Measure-according-to-categories/m-p/1713780#M35364</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="289608" data-lia-user-login="Power_MN" class="lia-mention lia-mention-user"&gt;Power_MN&lt;/a&gt; , this is a column rank&lt;/P&gt;
&lt;P&gt;Try measure rank&lt;/P&gt;
&lt;P&gt;Rank = RANKX(allselected(Table1[product]) ,calculate(Sum(Table1[Quality])),,DESC,Dense)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For Rank Refer these links&lt;BR /&gt;&lt;A href="https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures" target="_blank"&gt;https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://radacad.com/how-to-use-rankx-in-dax-part-1-of-3-calculated-columns" target="_blank"&gt;https://radacad.com/how-to-use-rankx-in-dax-part-1-of-3-calculated-columns&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;or my video -&lt;A href="https://www.youtube.com/watch?v=DZb_6j6WuZ0" target="_blank"&gt;https://www.youtube.com/watch?v=DZb_6j6WuZ0&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 11:52:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rank-Measure-according-to-categories/m-p/1713780#M35364</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-03-10T11:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Measure according to categories</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rank-Measure-according-to-categories/m-p/1713890#M35369</link>
      <description>&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt; Many thanks for your response. Unfortunately the DAX function does not work. It gives me rank 1 for every row. Kind regards Michael</description>
      <pubDate>Wed, 10 Mar 2021 12:17:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rank-Measure-according-to-categories/m-p/1713890#M35369</guid>
      <dc:creator>Power_MN</dc:creator>
      <dc:date>2021-03-10T12:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Measure according to categories</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rank-Measure-according-to-categories/m-p/1713978#M35372</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="289608" data-lia-user-login="Power_MN" class="lia-mention lia-mention-user"&gt;Power_MN&lt;/a&gt;&amp;nbsp;, measure rank is context-sensitive. if you add any other than&amp;nbsp;&lt;SPAN&gt;product like&amp;nbsp;product id, it will become 1.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Geography Rank = RANKX(all(Geography[City]),[Sales]) &lt;BR /&gt;Geography Rank = RANKX(all(Geography),[Sales])&lt;BR /&gt;City and ID Rank = RANKX(all(Geography[City],Geography[City Id]),[Sales])&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In these examples with city id , first one will give rank&amp;nbsp; 1 only.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Try to give table name to combination of columns&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 12:55:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rank-Measure-according-to-categories/m-p/1713978#M35372</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-03-10T12:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Measure according to categories</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rank-Measure-according-to-categories/m-p/1714032#M35377</link>
      <description>&lt;P&gt;Hello &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;have you got an advice, how I can do it right?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 13:26:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rank-Measure-according-to-categories/m-p/1714032#M35377</guid>
      <dc:creator>Power_MN</dc:creator>
      <dc:date>2021-03-10T13:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Measure according to categories</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rank-Measure-according-to-categories/m-p/1714077#M35382</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="289608" data-lia-user-login="Power_MN" class="lia-mention lia-mention-user"&gt;Power_MN&lt;/a&gt;&amp;nbsp;, this is column rank. I suggested measure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try like this&lt;/P&gt;
&lt;P&gt;rankx(filter(table, [supplier] =earlier([supplier] )), [quality],,desc, dense)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, refer to link I shared&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://radacad.com/how-to-use-rankx-in-dax-part-1-of-3-calculated-columns" target="_blank" rel="nofollow noopener noreferrer"&gt;https://radacad.com/how-to-use-rankx-in-dax-part-1-of-3-calculated-columns&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 13:50:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rank-Measure-according-to-categories/m-p/1714077#M35382</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-03-10T13:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Measure according to categories</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rank-Measure-according-to-categories/m-p/1716746#M35468</link>
      <description>&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt; the content on your link was very helpful. The solution was: Rank = Rankx(Filter(Table,Table1[Product]=EARLIER(Table1[Product])),Table1[Quality],,DESC,Dense) I want to complete this Dax-function with a second category "Product Group". So the ranking has the be grouped by "Product" AND "Product Group". How can i complete a second "Filter" to the ranking DAX-function? Thank you so much! Kind regards</description>
      <pubDate>Thu, 11 Mar 2021 14:01:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rank-Measure-according-to-categories/m-p/1716746#M35468</guid>
      <dc:creator>Power_MN</dc:creator>
      <dc:date>2021-03-11T14:01:59Z</dc:date>
    </item>
  </channel>
</rss>

