COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => COGNOS 8 Administration => Topic started by: shri on 11 Jul 2008 01:23:16 AM

Title: Calculating Time..
Post by: shri on 11 Jul 2008 01:23:16 AM
hi everyone,

how to calculate the time in report studio, I have three time fields i need add them and display them as
hh:mm:ss. for example i have time1, time2 and time3 as 00:30:20, 00:20:10 and 01:00:00 i want to add them and show them as separate column as Totaltime 01:50:30. (Windows 2003 with both cognos 8.1 and cognos 8.3 environment)

thanks
Title: Re: Calculating Time..
Post by: Mr.Cognos on 14 Jul 2008 09:49:59 AM
Hi CogStar,

If time1,time2 and time3 are date type or timestamp you can create four calculated fields like:

And add to your report where you want.

Title: Re: Calculating Time..
Post by: shri on 16 Sep 2008 06:36:26 PM
Thanks Mr.Cognos, I will try that.