COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: actcognosuser on 04 Apr 2011 02:37:05 PM

Title: Help With Rounding!
Post by: actcognosuser on 04 Apr 2011 02:37:05 PM
All,
       I have a rounding issue .i am using a crosstab.

Numerator: 37541
Denominator:37542

I want to display the % as 99.99 instead of 100.
I used the round function.How many digits should the integer expression be to get 99.99?_round(NM/DM , ?)

Even if i increase the number of digits i still get 100?

In the crosstab i have the data format set to percent with 2 digits after decimal.
thanks !


Title: Re: Help With Rounding!
Post by: blom0344 on 04 Apr 2011 02:46:38 PM
The division is not stored as a percentage, so in you case you need 4/5 decimals for the given example..
Title: Re: Help With Rounding!
Post by: actcognosuser on 04 Apr 2011 02:58:40 PM
?How can I convert it to a percentage ?
Title: Re: Help With Rounding!
Post by: blom0344 on 05 Apr 2011 02:33:50 AM
You do not..  Simply changing the dataformat layout in the dataitem properties will do the trick. There is no need to 'convert' anything.
Set dataformat to percentage and make sure you have the other settings (scale, decimals) right