COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: cmanlok on 25 Jan 2013 07:32:43 AM

Title: Grouping in crosstab column
Post by: cmanlok on 25 Jan 2013 07:32:43 AM
Hi, I am new to cognos.
I have a problem on how to group several columns as "OTHERS" in crosstab header

E.g:
              AU    UK    HK   JP  TH   CN
Apple     21    45     50   40  30  20
Orange  79    20     10   10  15  20

I want to group HK, JP, TH and CN as OTHERS

              AU    UK    OTHERS
Apple     21    45     140
Orange  79    20     55

Is that possible to do that?
THANKS!!!!             
Title: Re: Grouping in crosstab column
Post by: MFGF on 28 Jan 2013 08:43:54 AM
You could do this in a query calculation:

if ([Your column] = 'AU' or [Your column] = 'UK') then ([Your column]) else ('Other')

Cheers!

MF.