Hi SAS Expert,
I would like to create a calculated member in SAS OLAP to perform ranking. Following is the desired result as attached (MDX.jpg)
Mis Month
Category
Sales Amt
Ranking
Apr-13
Grocery
9999
1
Electronic
5000
2
May-13
6213
Beverage
2012
3
8782
Jun-13
I found a similar solution at http://social.msdn.microsoft.com/Forums/sqlserver/en-US/050a18f3-dac6-4e3a-bf00-d92319b88714/mdx-ran...
But it is using Microsoft platform and the syntax/ function is not available in SAS, i.e. nonempty function is not available
Can you please advise how to achieve this in SAS mdx?
Thank you.
Regards,
Mike
Have you investigated Proc Rank? It is designed to do this job for you.
Richard
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.
Lock in the best rate now before the price increases on April 1.
Register now!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.
Browse our catalog!