dbTalk Databases Forums  

Dimension Ordering

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


Discuss Dimension Ordering in the microsoft.public.sqlserver.olap forum.



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

Default Dimension Ordering - 08-10-2004 , 04:51 AM






Hi there,

Im pretty new to MDX queries and am trying to create a query that i can use
in reporting services to drill down into my data.

SELECT { Descendants ([Time].[All Time].[2003], [Time].[Month], LEAVES),
Descendants ([Time].[All Time].[2004], [Time].[Month], LEAVES)} ON COLUMNS, {
Descendants ([Customer].[All Customer], [Customer].[PostcodeArea], LEAVES) }
ON ROWS FROM Joiners

This currently shows the correct information, the ability to view joiners by
their location (country -> region -> postcodeArea) and by year, quarter and
month.

However, when the postcodearea is reached, the postcodes seem to be in a
random order. Is there a way to order the dimensions? Or am i confusing a
simple issue.

Thanks.

Ben Mann


Reply With Quote
  #2  
Old   
Andrea Temporin
 
Posts: n/a

Default Re: Dimension Ordering - 08-10-2004 , 05:15 AM






You have to use the clause ORDER (<set>, <value_expression>) search for it
in the help on line or see

http://doc.ddart.net/mssql/sql2000/h...tions_7diq.htm

Bye
Andrea
"Ben Mann" <BenMann (AT) discussions (DOT) microsoft.com> ha scritto nel messaggio
news:40BD9064-F2EB-4F8E-B5B1-B373431FEEFD (AT) microsoft (DOT) com...
Quote:
Hi there,

Im pretty new to MDX queries and am trying to create a query that i can
use
in reporting services to drill down into my data.

SELECT { Descendants ([Time].[All Time].[2003], [Time].[Month], LEAVES),
Descendants ([Time].[All Time].[2004], [Time].[Month], LEAVES)} ON
COLUMNS, {
Descendants ([Customer].[All Customer], [Customer].[PostcodeArea],
LEAVES) }
ON ROWS FROM Joiners

This currently shows the correct information, the ability to view joiners
by
their location (country -> region -> postcodeArea) and by year, quarter
and
month.

However, when the postcodearea is reached, the postcodes seem to be in a
random order. Is there a way to order the dimensions? Or am i confusing a
simple issue.

Thanks.

Ben Mann




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.