<?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 on multiple columns in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-on-multiple-columns/m-p/3728301#M145250</link>
    <description>&lt;P&gt;How are you wanting the ranking to work?&amp;nbsp;&lt;BR /&gt;A, Product 1 = 1&lt;BR /&gt;A, Product 2 = 2&lt;BR /&gt;B, Product 1 = 3&lt;/P&gt;
&lt;P&gt;B, Product 2 = 4&lt;BR /&gt;&lt;BR /&gt;?&lt;/P&gt;</description>
    <pubDate>Tue, 27 Feb 2024 17:01:26 GMT</pubDate>
    <dc:creator>Syk</dc:creator>
    <dc:date>2024-02-27T17:01:26Z</dc:date>
    <item>
      <title>Ranking on multiple columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-on-multiple-columns/m-p/3728255#M145248</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create ranking in the data table (not in a visual) based on 2 categories (Column1,2) instead of 1 like in example below. Can someone help with the ranking formula to create a new ranking column instead of creating a new measure. Thanks in advance!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Column1&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Sales&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Rank&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;10&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;5&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;15&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;20&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;30&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;10&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 27 Feb 2024 17:06:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-on-multiple-columns/m-p/3728255#M145248</guid>
      <dc:creator>vibhoryadav23</dc:creator>
      <dc:date>2024-02-27T17:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking on multiple columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-on-multiple-columns/m-p/3728301#M145250</link>
      <description>&lt;P&gt;How are you wanting the ranking to work?&amp;nbsp;&lt;BR /&gt;A, Product 1 = 1&lt;BR /&gt;A, Product 2 = 2&lt;BR /&gt;B, Product 1 = 3&lt;/P&gt;
&lt;P&gt;B, Product 2 = 4&lt;BR /&gt;&lt;BR /&gt;?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 17:01:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-on-multiple-columns/m-p/3728301#M145250</guid>
      <dc:creator>Syk</dc:creator>
      <dc:date>2024-02-27T17:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking on multiple columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-on-multiple-columns/m-p/3728312#M145255</link>
      <description>&lt;P&gt;Sorry, the table posted was the wrong one. Updated the same. Column3, 'Rank' is the expected outcome based on first 2 columns. Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 17:07:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-on-multiple-columns/m-p/3728312#M145255</guid>
      <dc:creator>vibhoryadav23</dc:creator>
      <dc:date>2024-02-27T17:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Ranking on multiple columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-on-multiple-columns/m-p/3729957#M145331</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="328280" data-lia-user-login="vibhoryadav23" class="lia-mention lia-mention-user"&gt;vibhoryadav23&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. If your third column is the result you expect, you can create a calculated column and use the rankx function to sort. For detailed information, please refer to the document: &lt;A href="https://learn.microsoft.com/en-us/dax/rankx-function-dax" target="_blank"&gt;RANKX function (DAX) - DAX | Microsoft Learn&lt;/A&gt;.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Ranking =
RANKX(
FILTER(
'Table',
'Table'[Column1] = EARLIER('Table'[Column1])
),
'Table'[Sales],
,
DESC,
Dense
)&lt;/LI-CODE&gt;
&lt;P&gt;2. If you want to sort the data in the second column according to size, you can place the fields in the table visual and adjust the sorting through the small triangle under the column name.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If your Current Period does not refer to this, please clarify in a follow-up reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Clara Gong&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 08:26:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ranking-on-multiple-columns/m-p/3729957#M145331</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-28T08:26:18Z</dc:date>
    </item>
  </channel>
</rss>

