Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculating Median in Cognos Impromptu

Status
Not open for further replies.

Swathi37

Vendor
Dec 23, 2002
77
US
Hi All,

There is no median function in cognos. How to calculate median for total hours.
For ex:
This is the data
Internal Service Minutes
I BPP 250
I BPP 120
T BPP 20
I BPP 320
T BPP 420
T BPP 20
T PP 100
I PP 80
T PP 180
T PP 280
I PP 180
I PP 480

I need to find the median in the following format.
Service Internal Median
----------------------------------
BPP I <median>
BPP T <median>
PP I <median>
PP T <median>

I refered knowledge base, it doesn't seem to help me when I have to group by Service and Internal columns. Is it possible to calculate median? Your help is greatly appreciated.
Thank you so much


Swathi


 
Have you tried using Document#:72236 on the cognos KB

Gary Parker
Systems Support Analyst
Manchester, England
 
Gary,
I tried the same logic. The logic works fine if I use Service and internal columns in the filter. If I calculate by grouping them, it gives me zero. Please advice.

Swathi
 
Hi Swathi,

Did you try using 'for' in the running-total calculation?
I think if you compute running-total for Service,Internal then it should give the output as expected.

Hope this helps...

Regards,
Sharat
 
Thank you Sharat. I will try and let you know.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top