Forum Discussion

QLD_Jay's avatar
QLD_Jay
Frequent Visitor
8 years ago
Solved

RANK.EQ If statement ignoring 0

Hi All,   I'm attempting to use the RANK.EQ function to produce TopN and BottomN tables that can be filtered by rank.   Currently I have a TopN column that ranks Device CPU usage totals from high...
  • Zubair_Muhammad's avatar
    8 years ago

    QLD_Jay

     

    Try with RANKX

     

    =
    IF (
        'All Device CPU Rank Table'[Total] <> 0,
        RANKX (
            FILTER (
                ALL ( 'All Device CPU Rank Table'[Total] ),
                'All Device CPU Rank Table'[Total] <> 0
            ),
            'All Device CPU Rank Table'[Total],
            ,
            ASC
        )
    )