mdx - Problems when using RANKX on PowerPivot -
i'm trying use rankx funcion rank sales, table looks this
productid | producttotal |
i want have third column called productrank rank the products depending on producttotal, have
=rankx(all('query'[productid]),'query'[producttotal]) however, nor working :(
any this?
thanks
if [producttotal] column following should work
=rankx(all('query'[productid]),calculate(sum('query'[producttotal])))
Comments
Post a Comment