COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: kamala on 17 Sep 2012 07:17:14 PM

Title: Variance calculation in crostab report
Post by: kamala on 17 Sep 2012 07:17:14 PM
I am using cognos 10 report studio to create a crosstab report.I am trying to calculate the variance for the same months for 2 different years
eg.2012 Jan value - 2011 Jan value; 2012 Feb value - 2011 Feb value and so on. How do i achieve it ? Thanks.
Title: Re: Variance calculation in crostab report
Post by: tjohnson3050 on 17 Sep 2012 08:59:56 PM
This will very depending on how your data model is structured, but basically on your columns you want to have a year data nested on top of the month data item.  Use the member for the year 2011 nested next to a year member for 2012.  Create a third calculation for 2012 - 2011.  Then nest the months level underneath all three.