dbTalk Databases Forums  

PeriodsTodate question

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


Discuss PeriodsTodate question in the microsoft.public.sqlserver.olap forum.



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

Default PeriodsTodate question - 03-01-2005 , 02:55 AM






Hi,
I have data from year 1999, 2000, 2001, 2002.
I need to use PeriodsToDate function from 1999 to 2002.
If I use YEAR function it takes me sum for every year separately.
How to make function that will take me all data from 1999 to 2002?

Thanks



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

Default RE: PeriodsTodate question - 03-01-2005 , 08:17 AM






why not just try this:

with
member [measures].[99_02_Total] as 'Sum({[Time].[1999]:[Time].[2002]},
[Measures].[YourMeasure])'



"Dubravko Modrusan" wrote:

Quote:
Hi,
I have data from year 1999, 2000, 2001, 2002.
I need to use PeriodsToDate function from 1999 to 2002.
If I use YEAR function it takes me sum for every year separately.
How to make function that will take me all data from 1999 to 2002?

Thanks




Reply With Quote
  #3  
Old   
Ohjoo Kwon
 
Posts: n/a

Default Re: PeriodsTodate question - 03-01-2005 , 08:29 AM



Dose it mean you always see the sum over the periods?

If then, it's reasonable to enable all member, [All Time]. Also you can use
PeriodsToDate([(All)]).

Ohjoo Kwon


"Dubravko Modrusan" <dubravko (AT) recro (DOT) hr> wrote

Quote:
Hi,
I have data from year 1999, 2000, 2001, 2002.
I need to use PeriodsToDate function from 1999 to 2002.
If I use YEAR function it takes me sum for every year separately.
How to make function that will take me all data from 1999 to 2002?

Thanks





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.