<?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 add a Rank by multiple columns in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-add-a-Rank-by-multiple-columns/m-p/2906500#M94840</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure if I understood your question correctly, but 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;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;N Lap CC =
RANKX (
    SUMMARIZE (
        FILTER ( 'Table', 'Table'[Store] = EARLIER ( 'Table'[Store] ) ),
        'Table'[Date]
    ),
    'Table'[Date],
    ,
    ASC
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Nov 2022 12:27:32 GMT</pubDate>
    <dc:creator>Jihwan_Kim</dc:creator>
    <dc:date>2022-11-15T12:27:32Z</dc:date>
    <item>
      <title>How to add a Rank by multiple columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-add-a-Rank-by-multiple-columns/m-p/2906406#M94834</link>
      <description>&lt;P class=""&gt;&lt;SPAN class=""&gt;Hello, how can I add lap number column in PowerQuery or in Dax? Tour number is based on store, date, area.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;I am attaching an example of what I would like to overe in the column N Lap&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 11:39:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-add-a-Rank-by-multiple-columns/m-p/2906406#M94834</guid>
      <dc:creator>Morrison</dc:creator>
      <dc:date>2022-11-15T11:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a Rank by multiple columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-add-a-Rank-by-multiple-columns/m-p/2906500#M94840</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure if I understood your question correctly, but 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;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;N Lap CC =
RANKX (
    SUMMARIZE (
        FILTER ( 'Table', 'Table'[Store] = EARLIER ( 'Table'[Store] ) ),
        'Table'[Date]
    ),
    'Table'[Date],
    ,
    ASC
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 12:27:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-add-a-Rank-by-multiple-columns/m-p/2906500#M94840</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-11-15T12:27:32Z</dc:date>
    </item>
  </channel>
</rss>

