Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Picking minimum date Post Reply Post New Topic
Author Message
Kjetil
Newbie
Newbie
Avatar

Joined: 07 Sep 2007
Location: Norway
Online Status: Offline
Posts: 2
Quote Kjetil Replybullet Topic: Picking minimum date
    Posted: 27 Nov 2007 at 1:26am
Hi.
 
I work in an alarm monitoring centre, and we have used Crystal Reports for about 2 years now. I've mostly made simple reports, but suddenly everyone in my company has found this to be a great tool, and I get more and more requests for more advanced reports.
 
Right now I am working on a report where I need to extract the earliest date/time for an eventcode in what we call a signal element, which is a unique number related to all activity regarding a specific incident.
This eventcode can occur several times in a signal element.
 
 
s_elem               Eventcode              date
1953484            10                           2007-11-27:08:00:00
1953484            23                           2007-11-27:08:13:05
1953484            10                           2007-11-27:08:15:43
1953484            10                           2007-11-28:08:23:16
 
In this case I need to pick out the date 2007-11-27:08:00:00 to use in another formula.
 
I have been twisting my brains out for 2 days now, but can't come up with a solution. Can anyone help, pls? :)
IP IP Logged
rahulwalawalkar
Senior Member
Senior Member
Avatar

Joined: 08 Jun 2007
Location: United Kingdom
Online Status: Offline
Posts: 731
Quote rahulwalawalkar Replybullet Posted: 27 Nov 2007 at 2:46am

Hi

Create a 2 formulas in Crystal the code in formula1 will be
Minimum ({datefield})
 
Then use the formula1 in formula2 .....
 
Thanks
Rahul
IP IP Logged
Kjetil
Newbie
Newbie
Avatar

Joined: 07 Sep 2007
Location: Norway
Online Status: Offline
Posts: 2
Quote Kjetil Replybullet Posted: 27 Nov 2007 at 3:09am
Ok, now you made me feel stupid. :)
This works fine! Guess I was thinking too complicated.
 
Thanks for your help.
 
Kjetil
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.