MDX query to calculate rank


I am executing the following query to find the rank,

with set [stud name] as 'order([[Name].[Name].members,[Measures].[Mark1],bdesc)'
member [measures].[product rank] as 'rank([Name].[Name].currentmember,[stud name])'

select {[product rank],[Measures].[Mark1]} on columns,
[stud name] on rows
from [Rajan_Test 3]

it throws an error as follows,

              Executing the query ...
              The dimension '[[Name]' was not found in the cube when the string, [[Name].[Name], was parsed.

              Execution complete
Kindly, help me to solve this.
more ▼

asked Apr 06, 2012 at 09:57 AM in Default

Rajan gravatar image

0 2 2 2

(comments are locked)
10|1200 characters needed characters left

1 answer: sort voted first
First look at the error make me think, should not [[Name] be changed to [Name] (An extra square bracket is there) :)
more ▼

answered Apr 06, 2012 at 10:03 AM

Usman Butt gravatar image

Usman Butt
13.9k 6 8 14

(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.



asked: Apr 06, 2012 at 09:57 AM

Seen: 1064 times

Last Updated: Apr 06, 2012 at 10:04 AM