dbTalk Databases Forums  

Problem when sorting by member properties, DESC

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss Problem when sorting by member properties, DESC in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Yvonne Haenscheid [MIS]
 
Posts: n/a

Default Problem when sorting by member properties, DESC - 10-21-2004 , 10:54 AM






Hi everybody,

can anybody help me with this MDX? This mdx runs on foodmart 2000 without
problem.
BUT as soon as I change the sorting criterium to DESC or ASC (without
breaking hierarchy) I get an error message complaining that the property is
unknown.

I tried the same stuff on another cube and didn't get that problem. Any
suggestions?

Thanx
Yvonne


with
set [____Yearly_Income_0] as
'
{ [Yearly Income].[All Yearly Income] }
'

set [____Store_0] as
'
{ [Store].[Store Name].ALLMEMBERS}
'

set [____AxisRows_0] as
'
{order([____Store_0],[Store].currentmember.properties("Store
Manager"),BDESC)}
'
select
[____AxisRows_0] dimension properties [Store].[Store Name].[Store Manager]
on rows,
[____Yearly_Income_0] on columns
from
[Sales]



Reply With Quote
  #2  
Old   
Brian Altmann
 
Posts: n/a

Default RE: Problem when sorting by member properties, DESC - 10-21-2004 , 02:25 PM






When you specify ASC or DESC, Analysis Services tries to order the top level
of the hierarchy ([Store Country]) first.
To do that it needs the aggregate values of the Order Expression at the
[Store Country] level.
However the member property [Store Manager] is only defined at the [Store
Name] level, so an error is raised.
HTH,
Brian
www.geocities.com/brianaltmann/olap.html
"Yvonne Haenscheid [MIS]" wrote:

Quote:
Hi everybody,

can anybody help me with this MDX? This mdx runs on foodmart 2000 without
problem.
BUT as soon as I change the sorting criterium to DESC or ASC (without
breaking hierarchy) I get an error message complaining that the property is
unknown.

I tried the same stuff on another cube and didn't get that problem. Any
suggestions?

Thanx
Yvonne


with
set [____Yearly_Income_0] as
'
{ [Yearly Income].[All Yearly Income] }
'

set [____Store_0] as
'
{ [Store].[Store Name].ALLMEMBERS}
'

set [____AxisRows_0] as
'
{order([____Store_0],[Store].currentmember.properties("Store
Manager"),BDESC)}
'
select
[____AxisRows_0] dimension properties [Store].[Store Name].[Store Manager]
on rows,
[____Yearly_Income_0] on columns
from
[Sales]




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.