Forum Discussion

mb0307's avatar
mb0307
Icon for Responsive Resident rankResponsive Resident
6 years ago
Solved

Ranking - negative or positive

Hi all,

 

As shown in the example below, I would like to rank the companies by sales variance.  Result should show Top 5 ranking by biggest variance number regardless if it is a -ve or +ve number.

 

 

Thanks in advance.

  • mb0307's avatar
    mb0307
    6 years ago

    Rankx(all(Table[compnay]), calculate(abs(sum(table[sales variance]))),,asc,dense)

     

    by adding ABS function it gives the desired output. 

     

    Thanks

4 Replies