<?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 How to handle Duplicate Rankings Using the RANKX DAX Function (No unique identifier) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-handle-Duplicate-Rankings-Using-the-RANKX-DAX-Function-No/m-p/4405693#M174911</link>
    <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;I have a data where i don't have any unique identifier, and i want to give the data a unique ranking, even for the rows where i have ID and dates as duplicated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, in the table i have an ID column and a Date column where values can be duplicated. I am trying to create a Rank column but i am getting same rank for the rows where ID and Dates are same (as shown under column Rank). Required Output is the column how i want Ranking to be.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried the following measure&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;RANKX(
    FILTER(
        'Table',
        'Table'[ID] = EARLIER('Table'[ID])
    ),
    'Table'[Date],
    ,
    DESC
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Feb 2025 19:15:50 GMT</pubDate>
    <dc:creator>jaanvikhatter</dc:creator>
    <dc:date>2025-02-11T19:15:50Z</dc:date>
    <item>
      <title>How to handle Duplicate Rankings Using the RANKX DAX Function (No unique identifier)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-handle-Duplicate-Rankings-Using-the-RANKX-DAX-Function-No/m-p/4405693#M174911</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;I have a data where i don't have any unique identifier, and i want to give the data a unique ranking, even for the rows where i have ID and dates as duplicated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, in the table i have an ID column and a Date column where values can be duplicated. I am trying to create a Rank column but i am getting same rank for the rows where ID and Dates are same (as shown under column Rank). Required Output is the column how i want Ranking to be.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried the following measure&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;RANKX(
    FILTER(
        'Table',
        'Table'[ID] = EARLIER('Table'[ID])
    ),
    'Table'[Date],
    ,
    DESC
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 19:15:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-handle-Duplicate-Rankings-Using-the-RANKX-DAX-Function-No/m-p/4405693#M174911</guid>
      <dc:creator>jaanvikhatter</dc:creator>
      <dc:date>2025-02-11T19:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle Duplicate Rankings Using the RANKX DAX Function (No unique identifier)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-handle-Duplicate-Rankings-Using-the-RANKX-DAX-Function-No/m-p/4406175#M174933</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;One of ways to achieve this is creating index column in power query editor.&lt;/P&gt;
&lt;P&gt;I tried to create a sample pbix file like below, and please check the below picture and the attached pbix file.&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;LI-CODE lang="markup"&gt;let
    Source = data_source,
    #"Sorted Rows" = Table.Sort(Source,{{"date", Order.Ascending}}),
    #"Grouped Rows" = Table.Group(#"Sorted Rows", {"id"}, {{"date", each Table.AddIndexColumn(_, "new rank", 1,1)}}),
    #"Expanded date" = Table.ExpandTableColumn(#"Grouped Rows", "date", {"date", "new rank"}, {"date", "new rank"}),
    #"Changed Type" = Table.TransformColumnTypes(#"Expanded date",{{"date", type date}, {"new rank", Int64.Type}})
in
    #"Changed Type"&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 12 Feb 2025 04:27:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-handle-Duplicate-Rankings-Using-the-RANKX-DAX-Function-No/m-p/4406175#M174933</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2025-02-12T04:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle Duplicate Rankings Using the RANKX DAX Function (No unique identifier)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-handle-Duplicate-Rankings-Using-the-RANKX-DAX-Function-No/m-p/4406306#M174938</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="929557" data-lia-user-login="jaanvikhatter" class="lia-mention lia-mention-user"&gt;jaanvikhatter&lt;/a&gt;&amp;nbsp;Is this a Global Rank or a Local Rank that resets for each ID? Are you trying to use this column in any other calculation? What is it? Running Total? Maybe you won't even need this column.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2025 05:53:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-handle-Duplicate-Rankings-Using-the-RANKX-DAX-Function-No/m-p/4406306#M174938</guid>
      <dc:creator>AntrikshSharma</dc:creator>
      <dc:date>2025-02-12T05:53:50Z</dc:date>
    </item>
  </channel>
</rss>

