COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: EArumugam on 29 Jun 2011 05:57:04 AM

Title: How to display zero negative values in brackets?
Post by: EArumugam on 29 Jun 2011 05:57:04 AM
hi all,

Display the negative values inside the bracket after round the values to 2.

for ex:

-0.045 --> _round(-0.045,2) --> (0.05) displaying correctly
-0.0025 --> _round(-0.0025,2) displaying as 0.00 instead of (0.00)

I want to display it as (0.00). please tell me how to achieve this ?

thanks,
eas
Title: Re: How to display zero negative values in brackets?
Post by: mrcool on 29 Jun 2011 07:23:32 AM
Have you played with number formate in properties?like setting 0 value characters as (0.00) .

Title: Re: How to display zero negative values in brackets?
Post by: RobsWalker68 on 29 Jun 2011 08:06:14 AM
Quote from: Easwar on 29 Jun 2011 05:57:04 AM
hi all,
-0.045 --> _round(-0.045,2) --> (0.05) displaying correctly
-0.0025 --> _round(-0.0025,2) displaying as 0.00 instead of (0.00)

I want to display it as (0.00). please tell me how to achieve this ?

eas


Shouldn't  _round(-0.0025,2) be rounded to 3dp instead of 2dp.  2dp wil equate to 0.00 whereas 3 dp will equate to -0.003

Rgds

Rob

Title: Re: How to display zero negative values in brackets?
Post by: EArumugam on 29 Jun 2011 11:52:16 PM
thanks rob,

i applied data format as percentage to that column in crosstab report deimal places as 2 , negative symbol as ().
-0.045 -->  (0.05) displaying correctly
-0.0025 --> displaying as 0.00 instead of (0.00)


-eas