COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: Son_88 on 23 Feb 2013 08:19:37 AM

Title: Add a certain number of months to a given month
Post by: Son_88 on 23 Feb 2013 08:19:37 AM
Hi friends,

My requirement is that I have to plot months on the x-axis ( Report Studio ). There is a drop-down for the user to select a particular month and another drop down to select a year and when the user selects a month , the x-axis should have months starting from the month that the user has chosen till 9 continous months.

For eg. if user has chosen Feb and year 2012 , the x-axis shoud display from Feb to Oct ( 2012 )
if user has chosen Sep and year 2012, the axis should display from Sep ( 2012 ) to May (2013 )

The task is critical. Please help asap.

Thanks in advance!

Title: Re: Add a certain number of months to a given month
Post by: adik on 23 Feb 2013 01:23:39 PM
is this relational or DMR/OLAP?
Title: Re: Add a certain number of months to a given month
Post by: blom0344 on 23 Feb 2013 02:22:28 PM
There is a very nice standard cognos function _add_months that will do what you need. Check it out in the expression builder