COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: perspolis09 on 27 Jun 2013 06:13:10 AM

Title: duration time type in hh:mm:ss?!
Post by: perspolis09 on 27 Jun 2013 06:13:10 AM
Hi,

i the below filter public I dropped the start time and the end time but in report its should look like "HH: MM: SS 'what's this Filter at the moment it give a '00 Hours', how can i modify or should add change?

(extract (hour, [Business]. [Use Deviation]. [END_TIMESTAMP]) * 60 + extract (minute, [Business]. [Use Deviation]. [END_TIMESTAMP])) - (extract (hour, [Business]. [use Deviation]. [START_TIMESTAMP]) * 60 + extract (minute, [Business]. [Use Deviation]. [START_TIMESTAMP])) + _days_between ([Business]. [Use Deviation]. [START_TIMESTAMP] [Business]. [Deviation use]. [END_TIMESTAMP]) * 1440

any idea?

Title: Re: duration time type in hh:mm:ss?!
Post by: CognosPaul on 27 Jun 2013 07:36:43 AM
'00 Hours' is an interval. You can format intervals by settings the data format to Time Interval. Time Unit --> Time. Display Hours Minutes and Seconds.

Your screen capture is showing a list of simple numbers. You can convert those into an interval by doing (1 hour) * [Data Item]
Title: Re: duration time type in hh:mm:ss?!
Post by: perspolis09 on 27 Jun 2013 09:53:42 AM
thanks for the tip but it did not quite work :(
Title: Re: duration time type in hh:mm:ss?!
Post by: CognosPaul on 28 Jun 2013 03:42:40 AM
I can only give you as much help as detail you give me.

Things to post: Version of Cognos, type of database you're using, error messages received (if any), exact output received, exact output expected.

The description that you gave is a bit difficult to understand, are you trying to filter the query by a specific duration, or do you want to see the duration in the list in time format?
Title: Re: duration time type in hh:mm:ss?!
Post by: perspolis09 on 30 Jun 2013 02:41:59 PM
Hi PaulM!

of course they i can send information :) I did not gate any error but interval time modify not help, i send attachment please check.


Title: Re: duration time type in hh:mm:ss?!
Post by: Dineshkumar on 02 Jul 2013 05:52:47 AM
Hi,

Follow the below steps, that will resolve ur problem.

1) cast(dataitme, interval second)
2) Properties -- see attachment..

-Dinesh
Title: Re: duration time type in hh:mm:ss?!
Post by: perspolis09 on 03 Jul 2013 07:37:06 AM
thank you Dineshkumar!