COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: johangel on 20 Jan 2009 03:26:53 AM

Title: calculating percentile 90%
Post by: johangel on 20 Jan 2009 03:26:53 AM
I have a list with result and percentiles like:

value     percentile
2608      65%
1256      30%
.            .
.            .
In the report I have to do a calculation where I need to use the value where the percentile = 90%.
How can I calculate this?
thanx,
Johan
Title: Re: calculating percentile 90%
Post by: jshanks on 20 Jan 2009 07:46:18 AM
Johan,

Can you add a calculation that evaluates your percentile column?  Something like what is listed below:

if ( [percentile] = .90 ) then ( [value calculation] ) else ( 0 )
Title: Re: calculating percentile 90%
Post by: johangel on 21 Jan 2009 01:23:46 PM
jshanks, it works.
But I have now 10 zero's and 1 percentile90% in my list
How can I use the calculated percentile90% in other calculations?
for instance :when I want log(percentile90%) , cognos give of course an error: log(0 ) is impossible.
Next formula I need to use:
(log(percentile90%) - log(125))*(other calculated variable)
sincerely,
johan