COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: csunitha on 04 Nov 2008 01:33:12 PM

Title: Totals in crosstab report
Post by: csunitha on 04 Nov 2008 01:33:12 PM
I have 2 crosstab reports, First crosstab total and 2nd crosstab total, needs to be added in 3rd crosstab.

How to add 2 crosstab totals in 3rd cross tab.
Title: Re: Totals in crosstab report
Post by: Suraj on 04 Nov 2008 02:19:59 PM
Is it same query or different?
If same just calculate a calculation.

If different, you have to either join or union them to get total.
Title: Re: Totals in crosstab report
Post by: csunitha on 04 Nov 2008 03:25:53 PM
They are different Queries.
Cognos is not allowing to Join or Union of queries to get total.......because

Data Item in Query 1

Total(PPG Category) ....In Expression we got " total(currentMeasure within detail [PPG Category])"  This is cognos generated when i add total to that column.

so it is not allowing to me to Join or Union of queries.
Title: Re: Totals in crosstab report
Post by: Suraj on 04 Nov 2008 03:48:30 PM
then create your own calculation instead of cognos generated for calculation.
Title: Re: Totals in crosstab report
Post by: csunitha on 04 Nov 2008 04:38:37 PM
I created the own calculation instead of cognos generated for calculation then i am getting an error -56
Title: Re: Totals in crosstab report
Post by: shahark on 08 Nov 2008 03:03:14 AM
you can delete the total Cognos created and define one of you own.
or
you  can specify "overwrite content" tp yes, unblock the report, add your calcaulation to the total line.
don't forget to add your calculation in the data > properties for the total lavel.

I hope it would help.

Shahar