dbTalk Databases Forums  

Ordering a virtual dimension

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


Discuss Ordering a virtual dimension in the microsoft.public.sqlserver.olap forum.



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

Default Ordering a virtual dimension - 10-18-2004 , 09:31 AM






Hi to all,
I have the classical "date" virtual dimension, hooked to a date field in the
fact table.
I run a MDX query that lists my results by year, and it's ok. Now, I want
exactly the same thing, but ordered by year descending. The order
specification is the year itself, that is, 2004, 2003, 2002 ......


How can I write an MDX expression where Years are in descending order? I
tried this:

ORDER( { [Date].Children }, ([Date].Children), DESC ) ON AXIS (1)

but I get a "token is not valid: ..... ^,^ DESC" error.

Any help greatly appreciated.
Bye



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.