dbTalk Databases Forums  

Re: Retrieve YTD value

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


Discuss Re: Retrieve YTD value in the microsoft.public.sqlserver.olap forum.



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

Default Re: Retrieve YTD value - 09-20-2004 , 08:51 PM






This [MS] support article should help you:

http://support.microsoft.com/default...en-us%3B301637
Quote:
INF: How to Calculate the Cumulative Value of a Measure
View products that this article applies to.

This article was previously published under Q301637

SUMMARY
In a number of applications and business reports you want to obtain or
return cumulative values for one or more measures. This article
illustrates the use of the SUM, PeriodsToDate, YTD, QTD, and ITEM
functions to return cumulative values over a period of time.
...
Add a new calculated member with the following properties: Parent
Dimension: Measures
Name : Sales Year To Date
Value : SUM(YTD(),[Measures].[Unit Sales])
Format String : STANDARD

Click OK to save the calculated member. This calculated member returns
the value of the Unit Sales measure for the year to date.
...
Quote:

- Deepak

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


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

Default Re: Retrieve YTD value - 09-21-2004 , 04:05 AM






Ok thanks Deepak. I'll give it a try.


"Deepak Puri" wrote:

Quote:
This [MS] support article should help you:

http://support.microsoft.com/default...en-us%3B301637

INF: How to Calculate the Cumulative Value of a Measure
View products that this article applies to.

This article was previously published under Q301637

SUMMARY
In a number of applications and business reports you want to obtain or
return cumulative values for one or more measures. This article
illustrates the use of the SUM, PeriodsToDate, YTD, QTD, and ITEM
functions to return cumulative values over a period of time.
...
Add a new calculated member with the following properties: Parent
Dimension: Measures
Name : Sales Year To Date
Value : SUM(YTD(),[Measures].[Unit Sales])
Format String : STANDARD

Click OK to save the calculated member. This calculated member returns
the value of the Unit Sales measure for the year to date.
...



- Deepak

*** 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.