Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

Count duplicate values and number them as 1,2,3.

Can any one help me for DAX formula to number the duplicate values as 1,2,3... in the 2nd column I have tried with this DAX formula in a new column {Double = IF(CALCULATE(COUNT('Rejection'[URN]),FIL...
  • Zubair_Muhammad's avatar
    Zubair_Muhammad
    8 years ago

    Hi Anonymous

     

    Please see the attached file

     

    We need an assitant field/ column to do this numbering.

    So first  add a calculated column

     

    SupportingColumn =
    RANDBETWEEN ( 1, 100 )

    Then we can use this formula to get desired Duplicate Numbering

     

    Duplicate_Numbering =
    RANKX (
        FILTER ( Table1, Table1[URN] = EARLIER ( Table1[URN] ) ),
        Table1[SupportingColumn]
    )