Forum Discussion

carlochecchia's avatar
carlochecchia
Advocate I
5 years ago
Solved

Dynamic Ranking Measure

Hi, I was wondering if I could get some help in order to set up my report. I have data for 6 Twitter WebPages. The dataset contains information on the WebPage, Type, and Followers  as per table be...
  • v-jingzhang's avatar
    5 years ago

    Hi carlochecchia 

     

    You can use RANKX function to create a calculated column. This would be easy.

    Rank Column = 
    RANKX (
        FILTER (
            'Twitter',
            'Twitter'[Type] = EARLIER ( 'Twitter'[Type] )
                && Twitter[Data] = EARLIER ( Twitter[Data] )
        ),
        Twitter[Followers],
        , // leave value argument blank
        DESC
    )

     

     

    Then create a measure to get the rank column value. 

    Ranking Measure = SELECTEDVALUE(Twitter[Rank Column])

    Regards,
    Community Support Team _ Jing
    If this post helps, please Accept it as the solution to help other members find it.