dbTalk Databases Forums  

Inverting dimension data in MDX statement

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


Discuss Inverting dimension data in MDX statement in the microsoft.public.sqlserver.olap forum.



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

Default Inverting dimension data in MDX statement - 10-01-2004 , 01:00 AM






When I return data from a MDX statement, I want the levels of the
dimension to be returned in inverted sequence, e.g. months, then
quarters then years instead of year, months, quarters.

My statement is:
SELECT {Descendants([Dates].[2004])} ON COLUMNS,
{[Customer].[All Customers[} ON ROWS
FROM [Performance]
WHERE ([Measures.Total Sales])

Thank you.

Reply With Quote
  #2  
Old   
Matthias
 
Posts: n/a

Default Re: Inverting dimension data in MDX statement - 10-01-2004 , 02:33 AM






Hi,

SELECT

hierarchize({Descendants([Dates].[2004])}, post) ON COLUMNS,

{[Customer].[All Customers[} ON ROWS
FROM [Performance]
WHERE ([Measures.Total Sales])

Cheers,
Matthias

"zee" <zelda.calitz (AT) bmw (DOT) com.au> schrieb im Newsbeitrag
news:c726d6d2.0409302200.7e61941d (AT) posting (DOT) google.com...
Quote:
When I return data from a MDX statement, I want the levels of the
dimension to be returned in inverted sequence, e.g. months, then
quarters then years instead of year, months, quarters.

My statement is:
SELECT {Descendants([Dates].[2004])} ON COLUMNS,
{[Customer].[All Customers[} ON ROWS
FROM [Performance]
WHERE ([Measures.Total Sales])

Thank you.



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.