COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Framework Manager => Topic started by: sspk on 26 Jun 2008 08:41:47 AM

Title: Prior YTD calculation
Post by: sspk on 26 Jun 2008 08:41:47 AM
Hi All,
I have a query subject (GL-Actual) which has data items like year,dept_name,account#,description,Jan, feb, mar,..Dec(Month wise totals ).I need to calculate current year YTD , prior year YTD.using these month wise  query items.(Table has 2 years of data)
year
dept_name
account#
jan
feb
:
Dec
Any suggestions will help me a lot

Title: Re: Prior YTD calculation
Post by: cogman on 29 Jun 2008 12:48:36 PM
create a prompt for month and use that month value in periodstodate fucntion.

ex.

periodsToDate([great_outdoors_company].[Years].[Years].[Year],[current month])