<?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: SUB RANKX HELP in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUB-RANKX-HELP/m-p/2813212#M89094</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="192401" data-lia-user-login="v-easonf-msft" class="lia-mention lia-mention-user"&gt;v-easonf-msft&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your reply - I'm pretty new to power BI so not sure what you refer to when asking for a simplified table, but I have mocked up in Excel what I want to acheieve:&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;Essentially, I need to rank within each original ranked category (i.e., 1st rank on the test name [which ive done under "TESTRANK""column], but then rank within each test name based on different text within the Lot No2 column [Rank column in excel mock up picture])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I dont want to use the Power query/transform option, and hoping for a DAX solution&amp;nbsp;&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;Thank you for your time.&lt;/P&gt;</description>
    <pubDate>Mon, 03 Oct 2022 07:40:35 GMT</pubDate>
    <dc:creator>mitchemmonkey</dc:creator>
    <dc:date>2022-10-03T07:40:35Z</dc:date>
    <item>
      <title>SUB RANKX HELP</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUB-RANKX-HELP/m-p/2800348#M88091</link>
      <description>&lt;P&gt;I have the following table called SUMMARISE2, which I have ranked according to TEST2, called TESTRANK2. For each test name (i.e., TEST2/TESTRANK2) I then want to sub rank the rows based on value in "Lot No2", so that for each TEST2 category, I have a rank of 1,2,3 (and so on), which repeats for each test name it comes across. Note - The actual number currently in "Lot No2" is irrelevant and I just need to assign a 1,2,3 etc number to each independent variable in the group, and not specifically rank based on the actual value.&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;Any help on the correct DAX expression would be appreciated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 15:40:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUB-RANKX-HELP/m-p/2800348#M88091</guid>
      <dc:creator>mitchemmonkey</dc:creator>
      <dc:date>2022-09-27T15:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: SUB RANKX HELP</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUB-RANKX-HELP/m-p/2802474#M88227</link>
      <description>&lt;P&gt;&lt;FONT&gt;Hi ,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="442422" data-lia-user-login="mitchemmonkey" class="lia-mention lia-mention-user"&gt;mitchemmonkey&lt;/a&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you share a simplified data table and expected results for further research ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Eason&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 10:25:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUB-RANKX-HELP/m-p/2802474#M88227</guid>
      <dc:creator>v-easonf-msft</dc:creator>
      <dc:date>2022-09-28T10:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: SUB RANKX HELP</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUB-RANKX-HELP/m-p/2813212#M89094</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="192401" data-lia-user-login="v-easonf-msft" class="lia-mention lia-mention-user"&gt;v-easonf-msft&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your reply - I'm pretty new to power BI so not sure what you refer to when asking for a simplified table, but I have mocked up in Excel what I want to acheieve:&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;Essentially, I need to rank within each original ranked category (i.e., 1st rank on the test name [which ive done under "TESTRANK""column], but then rank within each test name based on different text within the Lot No2 column [Rank column in excel mock up picture])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I dont want to use the Power query/transform option, and hoping for a DAX solution&amp;nbsp;&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;Thank you for your time.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 07:40:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUB-RANKX-HELP/m-p/2813212#M89094</guid>
      <dc:creator>mitchemmonkey</dc:creator>
      <dc:date>2022-10-03T07:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: SUB RANKX HELP</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUB-RANKX-HELP/m-p/2813325#M89104</link>
      <description>&lt;P&gt;Hi，&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="442422" data-lia-user-login="mitchemmonkey" class="lia-mention lia-mention-user"&gt;mitchemmonkey&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These two rankings are independent of each other and don't seem to be that complicated.&lt;/P&gt;
&lt;P&gt;I think the following two formulas will work.&lt;/P&gt;
&lt;P&gt;Calculated columns:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;TESTRANK2 = RANKX('Table','Table'[TETS2],,DESC,Dense)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Rank = RANKX(FILTER('Table','Table'[TETS2]=EARLIER('Table'[TETS2])),'Table'[LOT NO2],,DESC,Dense)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Other Related threads:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sqlbi.com/articles/rankx-on-multiple-columns-with-dax-and-power-bi/" target="_blank" rel="noopener"&gt;https://www.sqlbi.com/articles/rankx-on-multiple-columns-with-dax-and-power-bi/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Eason&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 08:20:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUB-RANKX-HELP/m-p/2813325#M89104</guid>
      <dc:creator>v-easonf-msft</dc:creator>
      <dc:date>2022-10-03T08:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: SUB RANKX HELP</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUB-RANKX-HELP/m-p/2813457#M89114</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="192401" data-lia-user-login="v-easonf-msft" class="lia-mention lia-mention-user"&gt;v-easonf-msft&lt;/a&gt;&amp;nbsp;Perfect - thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 09:00:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUB-RANKX-HELP/m-p/2813457#M89114</guid>
      <dc:creator>mitchemmonkey</dc:creator>
      <dc:date>2022-10-03T09:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: SUB RANKX HELP</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUB-RANKX-HELP/m-p/2816037#M89301</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="192401" data-lia-user-login="v-easonf-msft" class="lia-mention lia-mention-user"&gt;v-easonf-msft&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One more question. How do I change the DAX to reurnthe highest rank for each category:, i.e.,:&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;</description>
      <pubDate>Tue, 04 Oct 2022 07:40:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUB-RANKX-HELP/m-p/2816037#M89301</guid>
      <dc:creator>mitchemmonkey</dc:creator>
      <dc:date>2022-10-04T07:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: SUB RANKX HELP</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUB-RANKX-HELP/m-p/2816377#M89323</link>
      <description>&lt;P&gt;Hi，&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="442422" data-lia-user-login="mitchemmonkey" class="lia-mention lia-mention-user"&gt;mitchemmonkey&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Max rank = CALCULATE(MAX('Table'[Rank]),ALLEXCEPT('Table','Table'[TETS2]))&lt;/LI-CODE&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Eason&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 09:18:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUB-RANKX-HELP/m-p/2816377#M89323</guid>
      <dc:creator>v-easonf-msft</dc:creator>
      <dc:date>2022-10-04T09:18:01Z</dc:date>
    </item>
  </channel>
</rss>

