Forum Discussion

qpagreport's avatar
qpagreport
New Member
3 years ago
Solved

RANKX please help

Hello,

I need to rank clients by sales per "Own company". Ignore years.

 

please both calculated column and measure if possible.

 

Thank you.

 

Own companyClientYearSalesRank
AA1202210001
AA220229002
AA320228003
AA1202310001
AA220239002
AA320238003
BB1202210001
BB220229002
BB320228003
BB1202310001
BB220239002
BB320238003

2 Replies

  • Hi,

    Drag Own Company and Client to the Table visual.  Write these measures

    S = sum(Data[Sales])

    Rank = rankx(all(Data[Client]),[s])

    Hope this helps.