Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Technical Questions
Message Icon Topic: >= Formula Post Reply Post New Topic
Author Message
Beebt77
Newbie
Newbie
Avatar

Joined: 03 Aug 2012
Location: United States
Online Status: Offline
Posts: 8
Quote Beebt77 Replybullet Topic: >= Formula
    Posted: 08 Aug 2012 at 6:20am

Hello all,

I need help on working with  an existing formula that I have a total of minutes  that are added up for certain  time frames, and I do get the totals for these rooms, but if the total is greater than 60 minutes it should default to "0", and this is where I am stuck.
 
My current formula is
 
IF {Field name} = PREVIOUS ({Field Name}) and {Field DATE}= PREVIOUS ({Record Field DATE}) THEN
((TIME({ENTERED_ROOM}) - TIME(PREVIOUS
({CaseEXIT_TIME})))/60) else 0;
 
I am trying to  get the total time over 60 minutes to default to 0.
 
Any ideas?
 
Thanks
Bee
IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 13 Aug 2012 at 10:41am
I think that a datediff("n",{ENTERED_ROOM}, {ENTERED_ROOM}) should work.
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.