Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...This forum is the most helpful site I've ever used. I used to use Deja.com; but, this site is better - hands down!..."

Geography

Where in the world do Tek-Tips members come from?
ClevelandKate (TechnicalUser)
13 Jun 12 11:10
Good morning. Using Report Studio in Cognos 8. I'm a whiz at Excel but those rules don't all aply in Cognos. :) Anyway, I'm largely self taught and making progress, but this is one of those things that I'm sure is very simple, but I can't find it.

My boss wants a report that compares two time fields. One is a time given by a vendor when he claims he made a delivery. The second is the time our location reports receiving the delivery.

Field format is MM/DD/YYYY HH:MM:SS

ex: 4/1/2012 8:56:00 PM and 4/1/2012 9:33:00 PM
I'd like to be able to calculate the difference in minutes, for this one it would be 37, and then filter the report to only show items with a diff of over 60 mintes.

I'm sure there's a function to subtract the dates, but everything I've tried just errors out.

Any suggestions?

K8
blom0344 (TechnicalUser)
9 Jul 12 5:16
I would write an extended expression using the Cognos extract function. You can extract year,day,hour and minute from a timestamp and convert this to an overall figure in minutes.

The complexity lies in the difference between the 2 dates. If only the time component differs than it is a matter of calculation hours*60+minutes and subtracting the two numbers accordingly..

Ties Blom

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Back To Forum

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close