COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: Air_Cooled_Nut on 07 Jun 2011 05:53:16 PM

Title: Lining up of Day for Current Month, Prior Month, & Current Month Prior Year
Post by: Air_Cooled_Nut on 07 Jun 2011 05:53:16 PM
Please see attached Excel sheet to help understand what we're looking for when reading the below problem.

We need to create a report that lines up the Day (NOT the Date!) of the current month with the same Day as the prior month AND the current month prior year.  For example, the first of the current month, June, is a Wednesday.  The prior month the first Wednesday falls on May 4th so in the report the 4th of May would be on the same row as the 1st of June.  Same logic is needed for the current month prior year, in this case, June of 2010.

Is this something we would need to do in the Framework Manager or Report Studio or a combination of both?  TIA!
Title: Re: Lining up of Day for Current Month, Prior Month, & Current Month Prior Year
Post by: cognostechie on 08 Jun 2011 11:00:21 AM
Look at _day_of_week function. Put it in a loop to determine which day you need going backwards.
You can do it either in FM or RS. If it is required only for one report, I would do it in RS.
Title: Re: Lining up of Day for Current Month, Prior Month, & Current Month Prior Year
Post by: Air_Cooled_Nut on 08 Jun 2011 01:53:46 PM
Ok, we'll try it in FM.