Forum Discussion

Anonymouse's avatar
Anonymouse
New Member
3 years ago
Solved

How to rank based on multiple parameters

Hi there, I would like to rank a dataset based on multiple paramenters. From: 

 

ProductSalespersonSales
Product AAlan10
Product BBob20
Product BAlan22
Product ACharlie11

 

to 

 

ProductSalespersonSalesRank
Product AAlan101
Product ACharlie112
Product BBob201
Product BAlan222

 

 

Any ideas how to do this? Tried looking at RankX but it seems to be only for 1 paramenter only. Thanks!

3 Replies

    • Anonymouse's avatar
      Anonymouse
      New Member

      Hi there,

      when i tried your solution with sample data , my rank is all '1'. Could you kindly advise?

       

       

  • Anonymous's avatar
    Anonymous
    Not applicable

    Please feel free to utilize either the "Rank" measure provided below or the "ThxAlot" measure, both of which yield accurate results.

    Rank =
    RANK(DENSE,
        CALCULATETABLE(VALUES('Your Table Name'[Salesperson]),ALLSELECTED('Your Table Name'[Salesperson])),ORDERBY([sale],ASC))

    If you find the solution to your problem using either of these measures, kindly mark the issue as resolved.