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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -