dbTalk Databases Forums  

MDX Time Dimension Issue

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


Discuss MDX Time Dimension Issue in the microsoft.public.sqlserver.olap forum.



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

Default MDX Time Dimension Issue - 10-26-2004 , 12:28 PM






I'm trying to create a MDX query excluding the Quarter and grabbing
the month only in that year.

Current example Query...

Select
{[Ship Date].[All Ship Date].&[2003].Children}on Columns,
NON Empty {[Measures].[Load Count], [Measures].[Invoice Amount],
[Measures].[Weight],[Measures].[Miles] } on Rows
FROM
Customer

What I would like to get is all months in 2003 without displaying the
Quarters.

Thanks

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

Default RE: MDX Time Dimension Issue - 10-26-2004 , 04:23 PM






Try:

Select
{ Descendants([Ship Date].[All Ship Date].&[2003] ,<Month Level Name>) }
on Columns,
NON Empty {[Measures].[Load Count], [Measures].[Invoice Amount],
[Measures].[Weight],[Measures].[Miles] } on Rows
FROM
Customer

replacing <Month Level Name> to match your Time Dimension Month Level.

HTH,
Brian
www.geocities.com/brianaltmann/olap.html

"SHughes" wrote:

Quote:
I'm trying to create a MDX query excluding the Quarter and grabbing
the month only in that year.

Current example Query...

Select
{[Ship Date].[All Ship Date].&[2003].Children}on Columns,
NON Empty {[Measures].[Load Count], [Measures].[Invoice Amount],
[Measures].[Weight],[Measures].[Miles] } on Rows
FROM
Customer

What I would like to get is all months in 2003 without displaying the
Quarters.

Thanks


Reply With Quote
  #3  
Old   
Scott Hughes
 
Posts: n/a

Default Re: MDX Time Dimension Issue - 10-26-2004 , 04:40 PM





Thank you for the response...

THE MDX worked great...

Ended up looking like this:
Select
{ Descendants([Ship Date].[All Ship Date].&[2003] , [Ship Date].[Month])
}
on Columns,
NON Empty {[Measures].[Load Count], [Measures].[Invoice Amount],
[Measures].[Weight],[Measures].[Miles] } on Rows
FROM
Customer

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

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.