COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: Dealio on 09 Jan 2015 01:56:08 PM

Title: Help with custom total
Post by: Dealio on 09 Jan 2015 01:56:08 PM
Hi everyone!

I'm trying to figure how to create a custom total. So my situation is I have a list report with an overall total row at the bottom. Now my dilemma is I need to add a new total row where only certain rows get totaled. I still need the overall total row, and I'm not sure how to create a total row that only sums the rows I tell it to. Any advice?

Thanks!
Title: Re: Help with custom total
Post by: Robl on 09 Jan 2015 03:22:27 PM
There are a few ways, but one option would be to add an additional column to the report containing a calculation along the lines of;
If (required row) then (value) else (0)

Then you could just total that column.
Then hide the column if you don't want to see it.