Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Formula to display oldest date in a list? Post Reply Post New Topic
Author Message
BadBoyHouse
Newbie
Newbie


Joined: 25 May 2010
Online Status: Offline
Posts: 20
Quote BadBoyHouse Replybullet Topic: Formula to display oldest date in a list?
    Posted: 26 Mar 2014 at 12:14am
I’ve created a report which shows a list of dates along with currency values and whether or not the value for that date is unbilled. The three columns are made up of a date field, a currency field, and a variable to determine whether it is an unbilled item.

e.g.

23/09/13 - £100 -
09/12/13 - £100 -
11/12/13 - £100 -
06/01/14 - £100 - Unbilled
27/01/14 - £100 - Unbilled
05/02/14 - £100 – Unbilled
26/02/14 - £100 - Unbilled

I’m having difficulty coming up with a formula that will show the date of the oldest unbilled item.

I would normally use the ‘Minimum’ command to obtain the oldest date however in the example list above, the Minimum/oldest date is 23/09/13 whereas I need the oldest unbilled date which is 06/01/14.

Can anyone offer any pointers as to how I could pick out the oldest unbilled date?

Thanks in advance.
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 26 Mar 2014 at 3:46am

depends on the unbilled variable process bu tin general you can use a shared variable formula or a running total with an evaluate condition.

both have to be dislayed in a footer (group or report) to work


Edited by DBlank - 26 Mar 2014 at 3:46am
IP IP Logged
kostya1122
Senior Member
Senior Member
Avatar

Joined: 13 Jun 2011
Online Status: Offline
Posts: 475
Quote kostya1122 Replybullet Posted: 26 Mar 2014 at 8:39am
you could create a formula like
maximum(date_field)
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.029 seconds.