Forum Discussion

ChrisWilliams's avatar
ChrisWilliams
Advocate II
9 years ago
Solved

Rankx with filter

I'm working on a RANKX function that involves a filter.  I reviewed this answer, but it did not seem to help my scenario.   I have a table called "UserMessages", and a simplified version is shown b...
  • Vvelarde's avatar
    9 years ago

    hi ChrisWilliams

     

    Rank Top Senders =
    RANKX (
        FILTER ( ALL ( UserMessages ); UserMessages[Direction] = "Outbound" );
        CALCULATE (
            SUM ( UserMessages[Messages] );
            ALLEXCEPT ( UserMessages; UserMessages[User] )
        );
        ;
        DESC;
        DENSE
    )

     

    replace ; with ,