x

MDX query to calculate rank

..hi,

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

Rajan
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.

New code box

There's a new way to format code on the site - the red speech bubble logo will automatically format T-SQL for you. The original code box is still there for XML, etc. More details here.

Follow this question

By Email:

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

By RSS:

Answers

Answers and Comments

SQL Server Central

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

Topics:

x172
x66
x11

asked: Apr 06, 2012 at 09:57 AM

Seen: 1022 times

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