dbTalk Databases Forums  

Get All months

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


Discuss Get All months in the microsoft.public.sqlserver.olap forum.



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

Default Get All months - 02-17-2005 , 11:26 AM






Hi all.

The first records in my database are from may 2004, now i'm trying to
build a report with the information from 2004, and i want to include
the month's (Jan-April), yes i know there is no data, but is there a
way????


SELECT {[records]} ON AXIS(0),
NON EMPTY { Descendants([XXX].[All
XXX],[Gravidade].[Description],LEAVES) } ON AXIS(1),
NON EMPTY { Descendants([Type].[All Type],[Type].[SubType],LEAVES) }
ON AXIS(2),
NON EMPTY { Descendants([Date].[All Date],[Date].[Month],LEAVES) }
ON AXIS(3),
NON EMPTY { Descendants([State].[All
State],[State].[Description],LEAVES) } ON AXIS(4),

FROM [MyCube]


Thanks in advance!

Ricardo Coelho

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.