Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: MINIMUM function on a date column with null dates Post Reply Post New Topic
Author Message
anushka
Newbie
Newbie
Avatar

Joined: 10 Apr 2008
Online Status: Offline
Posts: 29
Quote anushka Replybullet Topic: MINIMUM function on a date column with null dates
    Posted: 17 Apr 2013 at 7:00am
Hi
 
i am working on a report where i need to find the earliest date when the status was changed to X. I am using minimum function but it is giving me blank date , i am guessing because it treats the blank date as minimum.
 
Can someone advice on how can i calculate minimum date and if minimum date is blank then pull the next not null minimum date.
 
What i have tried is
1) supress null in details and then calculate minimum - didnt work
Code
//{@Active Date}= cdate(0,0,0)
//or
//totext({@Active Date})= ""
//
 
2) find minimum and then if null add next minimum - didnt work
IF minimum({@Active Date},{@Groupbycust})= cdate(0,0,0)
or
totext(minimum({@Active Date},{@Groupbycust}))= ""
THEN minimum({@Active Date},{@Groupbycust}) + 1
else
minimum({@Active Date},{@Groupbycust})
 
 
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 17 Apr 2013 at 7:39am
can you post some sample data and how you want it calculated?
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.