I have an OLAP cube containing the sales count for each of my shops.
Using MDX, how can I output the rank of a given shop?
I am dreaming about something like below (does not work), it would return 8 if SomeShop is the 8th most-selling shop:
SELECT RANK( [Shop].CHILDREN, [Shop].[SomeShop]) from [Sales]