Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: grouping conditions Post Reply Post New Topic
Author Message
Memoli28
Groupie
Groupie
Avatar

Joined: 10 Apr 2009
Online Status: Offline
Posts: 58
Quote Memoli28 Replybullet Topic: grouping conditions
     Posted: 22 Jun 2009 at 10:48am
Hi All,
 
i have the following problem:
 
aaaaaa      06-15-2009  11:35 pm     06-17-2009 04:00 am
aaaaaa      06-15-2009  11:40 pm     06-18-2009 05:00 am
aaaaaa      06-16-2009  11:48 pm     06-18-2009 07:00 am
 
and i want  to have the following result by grouping:
 
aaaaa       06-15-2009 11:35 pm      06-18-2009 07:00 am
 
so,
 
group 1  aaaa
group 2: lowest value
group 3: highest value
 
i am not so familiar with grouping formulas.
 
regards,
Mehmet
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Quote lockwelle Replybullet Posted: 22 Jun 2009 at 2:21pm
group by aaaa, in the group footer or header, use the aggregates Min and Max...no grouping formula is going give that result as it is not a 'row' of data.
 
HTH
IP IP Logged
Memoli28
Groupie
Groupie
Avatar

Joined: 10 Apr 2009
Online Status: Offline
Posts: 58
Quote Memoli28 Replybullet Posted: 24 Jun 2009 at 10:56am
Hi Lockwelle,
used a summary with min and max.
thanks for the tip.
 
do you also know what kind of formula i need to calculate the difference in hours between two datetime value fields,where weekends are excluded?
 
so example,
6/24/2009 9:29:49 PM  - 6/23/2009 3:40:29 PM
the answer must be in hours and minutes.
 
regards,
Mehmet
 
 
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Quote lockwelle Replybullet Posted: 24 Jun 2009 at 11:44am
what I would do is/have done, is use datediff to give me the answer in, say, minutes, then I would subtract the time for the weekend, since it is constant and then I would convert the value back to hours and minutes.
IP IP Logged
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