COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: aftabp on 20 May 2015 08:03:07 AM

Title: Adding sum of two rows before the actual sum
Post by: aftabp on 20 May 2015 08:03:07 AM
I have a report that looks like this in reporter studio

(http://i.imgur.com/RUgp8Cn.png)

It comes out like this in Cognos

(http://i.imgur.com/kqFo2kE.png)

The row Commodity minus Rev. shows the sum for Commodoty.
The row Resultat (Result) show the actual sum which is Total Revenue + Commodity minus Rev + Sum a,b,c + Product C
How do i go about creating a case statement that shows: Total(Revenue) - Total(Comodity) in Commodity minus Rev. ?
Title: Re: Adding sum of two rows before the actual sum
Post by: Raghuvir on 21 May 2015 09:35:23 AM
hi,

how about adding a data item and writing an expression like Total(revenue)-Total(commodity).

then go to the report design page, unlock the report and then cut the expression in front of commodity minus rev, and then add the new data item created there.

hope this should help.

Regards