COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: craigalaniz on 12 Dec 2014 04:17:49 PM

Title: Add Percentage to CrossTab
Post by: craigalaniz on 12 Dec 2014 04:17:49 PM
Hi All

I am trying to add a column to calculate a percentage to a crosstab. I have a list of categories and I use COUNT() the total number of each. I also have the total of all. I can't seem to get calculate the percentage. I have tried COUNT(Category)\Total().

Example cross tab

           COUNT       %
Cat1 - 382          382/645       
Cat2 - 169          169/645
Cat3 - 94              94/645

Total  - 645

Thanks

Craig

Title: Re: Add Percentage to CrossTab
Post by: MFGF on 14 Dec 2014 05:31:11 AM
Quote from: craigalaniz on 12 Dec 2014 04:17:49 PM
Hi All

I am trying to add a column to calculate a percentage to a crosstab. I have a list of categories and I use COUNT() the total number of each. I also have the total of all. I can't seem to get calculate the percentage. I have tried COUNT(Category)\Total().

Example cross tab

           COUNT       %
Cat1 - 382          382/645       
Cat2 - 169          169/645
Cat3 - 94              94/645

Total  - 645

Thanks

Craig

Hi,

Are you using a relational or dimensional package for this report?

MF.
Title: Re: Add Percentage to CrossTab
Post by: craigalaniz on 15 Dec 2014 10:05:35 AM
Hello

I am using a relational package.

Thanks

Craig
Title: Re: Add Percentage to CrossTab
Post by: bi4u2 on 15 Dec 2014 11:02:38 AM
Craig, sometimes when working with crosstabs you need to experiment with the property called 'Solve Order', make the solve order on the percentage calculation a 2 or 3 and see what happens.