COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: MellBI on 30 Nov 2009 09:12:21 AM

Title: Conditional formatting based on column NOT present in crosstab
Post by: MellBI on 30 Nov 2009 09:12:21 AM
I try to make a conditional formatting in a crosstab and do not want to show the column that the formatting is based on.
The best try i have managed to implement is to include the column but delete borders and use a font that is not visible.
BUT the column width is not possible to adjust to 0 or 1 pixel so it is actually visible anyway => report takes up to much space in width.

Anyone with similar reports that have solved this in a decent way?

MellBI
Title: Re: Conditional formatting based on column NOT present in crosstab
Post by: rockytopmark on 30 Nov 2009 12:55:42 PM
Add the data item the condition is based on to the Row and/or Column edge's list of Properties.
Title: Re: Conditional formatting based on column NOT present in crosstab
Post by: raro on 03 Dec 2009 03:41:11 PM
compiled a short primer on conditional formatting of crosstab cells without its base beeing present in the crosstab itself. have a look at: http://www.zeitfenster.de/cognos/C84_How_to_format_a_crosstab_in_Cognos_8.pdf

comments welcome.
Title: Re: Conditional formatting based on column NOT present in crosstab
Post by: MellBI on 07 Dec 2009 03:00:22 AM
THANKS,

It looks like it make sense, I will test and figure out if it solves my problem.

/MellBI
Title: Re: Conditional formatting based on column NOT present in crosstab
Post by: MellBI on 08 Dec 2009 03:20:55 AM
I did not manage to apply this to my report.
I was not allowed to assign a measure as a attribute to another measure and the Boolean variable only gives me 2 situations when I need at least 4.

I have
Columns: Years with four measures inside every Year.
Rows: Two nesting levels

The colour of the font in one of the columns (Measure 1) is supposed to be different depending on a calculation based on measure 1 and one measure that we do not want to present, measure 2. (Measure 1 / Measure 2)
Based on a scale like: Blue if > 85%, Green if >=75%, Yellow if >=50%; Red if < 50%