<?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: How to create a Ranking column in data table based on multiple categories in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Ranking-column-in-data-table-based-on-multiple/m-p/4004926#M156331</link>
    <description>&lt;P&gt;Hi, I am not sure if I understood your question correctly, but I tried to create a sample pbix file like below.&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&lt;/P&gt;
&lt;P&gt;It is for creating a new column.&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;A href="https://learn.microsoft.com/en-us/dax/rank-function-dax?wt.mc_id=DP-MVP-5004989" target="_blank"&gt;RANK function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;expected result calculated column =
RANK (
    SKIP,
    data,
    ORDERBY ( data[approval_date], ASC ),
    ,
    PARTITIONBY ( data[nsrnum], data[description_task] ),
    MATCHBY ( data[nsrnum], data[description_task], data[approval_date] )
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 22 Jun 2024 08:34:40 GMT</pubDate>
    <dc:creator>Jihwan_Kim</dc:creator>
    <dc:date>2024-06-22T08:34:40Z</dc:date>
    <item>
      <title>How to create a Ranking column in data table based on multiple categories</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Ranking-column-in-data-table-based-on-multiple/m-p/4004825#M156328</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need to create a Ranking Column based on 2 categories, (Description_Task and Approval_Date) for each NSRNUM as displayed below. I created a calculated column using DAX. But that doesn't give the desired result. Attached one screenshot for one of the NSRNUM. Kindly help.&lt;/P&gt;&lt;DIV&gt;RANKing Group =&lt;BR /&gt;RANKX (&lt;BR /&gt;FILTER (&lt;BR /&gt;'Table',&lt;BR /&gt;'Table'[NSRNUM] = EARLIER ( 'Table'[NSRNUM] )&lt;BR /&gt;&amp;amp;&amp;amp; (&lt;BR /&gt;'Table'[DESCRIPTION_TASK] &amp;lt; EARLIER ( 'Table'[DESCRIPTION_TASK] )&lt;BR /&gt;|| 'Table'[approval_date_fmt] &amp;lt; EARLIER ( 'Table'[approval_date_fmt] )&lt;BR /&gt;)&lt;BR /&gt;),&lt;BR /&gt;'Table'[approval_date_fmt],&lt;BR /&gt;,&lt;BR /&gt;ASC,&lt;BR /&gt;DENSE&lt;BR /&gt;)&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Expectation:&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;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TIA,&lt;/P&gt;&lt;P&gt;Tanisha&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jun 2024 02:02:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Ranking-column-in-data-table-based-on-multiple/m-p/4004825#M156328</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-22T02:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a Ranking column in data table based on multiple categories</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Ranking-column-in-data-table-based-on-multiple/m-p/4004859#M156329</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;- can you try the below calcuated column&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ranking_Group =&lt;BR /&gt;VAR CombinedValue =&lt;BR /&gt;'Table'[DESCRIPTION_TASK] &amp;amp; FORMAT('Table'[approval_date_fmt], "yyyymmdd")&lt;BR /&gt;RETURN&lt;BR /&gt;RANKX(&lt;BR /&gt;FILTER(&lt;BR /&gt;'Table',&lt;BR /&gt;'Table'[NSRNUM] = EARLIER('Table'[NSRNUM])&lt;BR /&gt;),&lt;BR /&gt;CombinedValue,&lt;BR /&gt;,&lt;BR /&gt;ASC,&lt;BR /&gt;DENSE&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution! This will help others on the forum!&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;Appreciate your Kudos!!&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jun 2024 04:32:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Ranking-column-in-data-table-based-on-multiple/m-p/4004859#M156329</guid>
      <dc:creator>rajendraongole1</dc:creator>
      <dc:date>2024-06-22T04:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a Ranking column in data table based on multiple categories</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Ranking-column-in-data-table-based-on-multiple/m-p/4004889#M156330</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="118660" data-lia-user-login="rajendraongole1" class="lia-mention lia-mention-user"&gt;rajendraongole1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Dont see any ranking with this DAX expressions. Attaching the screenshot below also my sample pbix file. Kindly have a look. Thanks.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Tanisha&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jun 2024 06:42:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Ranking-column-in-data-table-based-on-multiple/m-p/4004889#M156330</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-22T06:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a Ranking column in data table based on multiple categories</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Ranking-column-in-data-table-based-on-multiple/m-p/4004926#M156331</link>
      <description>&lt;P&gt;Hi, I am not sure if I understood your question correctly, but I tried to create a sample pbix file like below.&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&lt;/P&gt;
&lt;P&gt;It is for creating a new column.&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;A href="https://learn.microsoft.com/en-us/dax/rank-function-dax?wt.mc_id=DP-MVP-5004989" target="_blank"&gt;RANK function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;expected result calculated column =
RANK (
    SKIP,
    data,
    ORDERBY ( data[approval_date], ASC ),
    ,
    PARTITIONBY ( data[nsrnum], data[description_task] ),
    MATCHBY ( data[nsrnum], data[description_task], data[approval_date] )
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jun 2024 08:34:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Ranking-column-in-data-table-based-on-multiple/m-p/4004926#M156331</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2024-06-22T08:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a Ranking column in data table based on multiple categories</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Ranking-column-in-data-table-based-on-multiple/m-p/4004956#M156332</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;- Can you please try the solution provided by&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;span class="lia-unicode-emoji" title=":clapping_hands:"&gt;👏&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jun 2024 10:26:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Ranking-column-in-data-table-based-on-multiple/m-p/4004956#M156332</guid>
      <dc:creator>rajendraongole1</dc:creator>
      <dc:date>2024-06-22T10:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a Ranking column in data table based on multiple categories</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Ranking-column-in-data-table-based-on-multiple/m-p/4006825#M156860</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;, This one is perfectly working. Partition by is doing the job here. Thanks you so much &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 11:54:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Ranking-column-in-data-table-based-on-multiple/m-p/4006825#M156860</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-24T11:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a Ranking column in data table based on multiple categories</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Ranking-column-in-data-table-based-on-multiple/m-p/4010729#M157836</link>
      <description>&lt;P&gt;Hi Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Based on the description, you seem to have solved the problem.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Wisdom Wu&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 08:18:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-Ranking-column-in-data-table-based-on-multiple/m-p/4010729#M157836</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-26T08:18:51Z</dc:date>
    </item>
  </channel>
</rss>

