Search code examples
formattingconditional-statementscognos-10cognos-bi

Conditional formatting in rounded values


Facing a trouble in Cognos 10, in my report I have to apply conditional formatting for values less than zero (except zero) as red, for which I am also applying round-off to zero decimals. Now the problem is values like -0.1 are getting rounded-off to 0, but also shown in red due to conditional formatting.

Is there any work around to show the rounded zero values in black?


Solution

  • Try rounding off the value on your condition on conditional style too. Like these:

    round(([ColumnValue]*100),0) < 0

    then set the foreground color or background color to red. Hope it helps.