Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Rank by Date & Time

Hello,    I have a dataset that I am currently ranking by Date, which is working well. However, I have multiple entries for the same day, so I would like it to assign a rank by looking at both the ...
  • v-jiascu-msft's avatar
    7 years ago

    Hi Anonymous,

     

    You just need to remove ".[Date]".

    Rank =
    VAR d = EventSignatures[DateSigned]
    VAR a = EventSignatures[ActiveForm_ld]
    RETURN
        CALCULATE (
            RANK.EQ ( d, EventSignatures[DateSigned], ASC ),
            FILTER ( ALL ( 'EventSignatures' ), EventSignatures[ActiveForm_ld] = a )
        )
    

    Rank-by-Date-Time

     

    Best Regards,
    Dale