Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

Rank duplicate ID based on date

Good day! Im facing a small issue but would help a lot when solved. My dataset shows the following: Job PU Date 1 01/01/23 1 01/02/23 1 01/03/23 2 01/01/23 3 01/01/23 ...
  • Ritaf1983's avatar
    2 years ago

    Hi Anonymous 

    Add a calculated column with the dax code :

    Ranking =
    RANKX(
        FILTER(
            ALL('Table (2)'),
            'Table (2)'[Job] = EARLIER('Table (2)'[Job])
        ),
        'Table (2)'[PU Date],
        ,
        ASC
    )

    If this post helps, then please consider Accepting it as the solution to help the other

    members find it more quickly

  • Ritaf1983's avatar
    Ritaf1983
    2 years ago

    Hi Anonymous  for ranking with POWER QUERY please refer to the linked tutorial

    https://www.youtube.com/watch?v=ej60Wxaum_E

    If this post helps, then please consider Accepting it as the solution to help the other

    members find it more quickly