Problems when using RANKX on PowerPivot
-
12-06-2021 - |
Pergunta
I'm trying to use the RANKX funcion to Rank some sales, my table looks like this
ProductID | ProductTotal |
I want to have a third column called ProductRank that will rank the The products depending on the ProductTotal, this is what I have
=RANKX(ALL('Query'[ProductID]),'Query'[ProductTotal])
However, this is nor working :(
any help with this?
Thanks
Solução
If [ProductTotal] is a column then the following should work
=RANKX(ALL('Query'[ProductID]),CALCULATE(SUM('Query'[ProductTotal])))
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow