dbTalk Databases Forums  

Multilevel order skiping level?

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


Discuss Multilevel order skiping level? in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
al
 
Posts: n/a

Default Multilevel order skiping level? - 01-23-2004 , 03:32 AM






Hi ,
Somebody has been in a similar situation or knows like solving it?
I have this situation : 5 levels (Country), (Region), (Area),
(Cities), (Districts)
Well, I need to execute a Mdx to return
-Country
-Region
-Cities
but I need Cities order by Region (without Hierarchy -areas omitted-).

select Measures.[Unit Sales] on columns,
Hierarchize ( {
country.members, descendants (country1, region),
country.members, descendants (country1, region),
country2.region1, country2.region2, descendants (country1,
cities)...})
from CubesSales
where Time.2003

Note: I am using Hierarchize because the selection of levels / members
is "Open" through an assistant.
I tried to use Sorting on multiple criteria method ( 'parent_name' +
value ....) but with more than 2 levels does not work.

Any idea about it? I do not know MDX deeply, is it really complex
sometimes?.

Thanks in advance.
al

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.