Tuesday, 16 September 2014

COGNOS: Difference between Two values in a COLUMN

Suppose I have report output as follows…
difference1-quontrasolutions
Now, I want to find difference between 2006’s Revenue and 2007’s Revenue in its footer…
To Resolve this follow the steps
1)      Create a list report as follows
difference2
2)      Create a Filter to only show 2006 and 2007 as follows
difference3-quontrasolutions

3)      Create “list overall” footer as follows..
diffrenece4-quontrasolutions
4)      Select the summary row (The overall footer ) and split it
5)      Unlock the report
6)      Drag query calculation to the Cell as follows..
difference5-quontrasolutions
7)      Give any name and enter the following expression in Expression definition box..
difference8
8)      Click OK and Run the report, you will get output as follows..
difffrence7-quontrasolutions

No comments:

Post a Comment