Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Ranking with multiple filters

Hi I have a table and I want to rank ONLY the instances of userIDs where statusofResponse is 1 and ResponseID is 99. Here is the table and here is the desired output: UserID ResponseID Response...
  • Greg_Deckler's avatar
    6 years ago

    Try:

     

    Rank = 
        IF([StatusofResponse] <> 1 || [ResponseID] <> 99,
            BLANK(),
            RANKX(FILTER('Table',[StatusofResponse] = 1 && [ResponseID] = 99 && [UserID] = EARLIER([UserID])),[Response Value])
        )