Forum Discussion
SuchCT
3 years agoHelper II
Ranking rows with calculated column
Hello everyone, I have a database that looks like this: Person Week Sales A 1 845 B 1 519 C 1 304 ...
- 3 years ago
Hi SuchCT
This gives the ranks of each person's weeks.Rank col = var _person = RankingSales[Person] var _rank = rankx(FILTER(ALL(RankingSales),RankingSales[Person]=_person),RankingSales[Sales]) return _rank
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos ๐are nice too.
Nathaniel
Nathaniel_C
3 years agoCommunity Champion
Hi SuchCT
This gives the ranks of each person's weeks.
Rank col =
var _person = RankingSales[Person]
var _rank = rankx(FILTER(ALL(RankingSales),RankingSales[Person]=_person),RankingSales[Sales])
return _rank
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos ๐are nice too.
Nathaniel
SuchCT
3 years agoHelper II
thanks, that works great so Iยดll mark it as the solution. Just one more thing, I'm trying to resolve ties. In the base some person had the exact same sales for two different weeks, I'd need for one of them to have one rank and the next rank for the other week