Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: DateTime Difference Post Reply Post New Topic
Author Message
cbaldwin
Groupie
Groupie


Joined: 09 Apr 2014
Online Status: Offline
Posts: 81
Quote cbaldwin Replybullet Topic: DateTime Difference
    Posted: 22 Apr 2014 at 10:18am
I have a report with a {date time} field in each record. My report is grouped by a {batch number}. Each batch has 2 records in it. The records are defined by an {activity type} field. The activity field value is either "start" or "end". I would like to be able to determine the time difference in minutes between the {date time} field of the {activity type}= "start" record and the {date time} field of {activity type}="end" record in my {batch number} group.

I have read and looked and attempted to complete this without success.

Any help would be greatly appreciated.
IP IP Logged
kostya1122
Senior Member
Senior Member
Avatar

Joined: 13 Jun 2011
Online Status: Offline
Posts: 475
Quote kostya1122 Replybullet Posted: 22 Apr 2014 at 12:29pm
this might work
datediff( n, maximum({date time},{batch number}) ,
minimum({date time},{batch number}))

IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.