Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Formula Post Reply Post New Topic
Author Message
assyst
Newbie
Newbie


Joined: 31 Mar 2012
Online Status: Offline
Posts: 1
Quote assyst Replybullet Topic: Formula
    Posted: 31 Mar 2012 at 9:12pm
im trying to get the diffence between the incident closure datetime and incident pending to close datetime
 
example:
action closure is 31-3-2012 2:40:27 AM
action pending-closure is 28-3-2012 4:18:27PM
 
i want to calcuate the diffenece between the closure and pending to closure actions
 
i tried this but it didn't work:
 
(if {act_type.act_type_sc} = ["closure"] then {act_reg.date_actioned}) - (if {act_type.act_type_sc} = ["pending-closure"] then {act_reg.date_actioned})
 
**act_type.act_type_sc is the action type short code which can be closure, pending-closure
**act_reg.date_actioned is the datetime in which the action was taken
 
please help.
 
IP IP Logged
rkrowland
Senior Member
Senior Member
Avatar

Joined: 20 Dec 2011
Location: England
Online Status: Offline
Posts: 259
Quote rkrowland Replybullet Posted: 01 Apr 2012 at 11:07pm
From the above I'm assuming your closure and pending-closure are separate records?
 
This isn't going to be possible without some sort of group or use of the next() or previous() functions.
 
Please post an extract of your data and what you'd like your end result to be.
 
Regards,
Ryan.
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.016 seconds.