Forum Discussion
Ranking rows with calculated column
- 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
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
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
- Nathaniel_C3 years agoCommunity Champion
Hi SuchCT ,
You are welcome!
With regards to the additional question, would you give me an example, and expected outcome?Thanks,
Nathaniel