SMosley804
Technical User
Crystal Developer ver 11
DB-IBM DB2
-----------------------------------------------------------
I have 4 columns base off of the date field in order to get 4 columns,
1.day, 2.month, 3.week, 4.year
The formulas that populate these colums look like the following.
if {startdate} >=(currentdate-7) and {startdate} <currentdate then {Hours}
I end up with columns similar to the following ex.
start date Day Week Month
6/29/2008 0 0 0
6/30/2008 0 16.10 16.10
7/1/2008 0 292.91 292.91
7/2/2008 0 185.20 185.20
7/3/2008 0 227.35 227.35
7/4/2008 0 213.78 213.78
7/5/2008 0 220.12 220.12
7/6/2008 191.70 191.70 191.70
7/7/2008 0 118.23 118.23
I need to get the min max,and avg values for only set where there is data because the other dates don't apply.
I can get a max value but I am having problems getting the min and avg because it is including the zeroes which should not be included.
DB-IBM DB2
-----------------------------------------------------------
I have 4 columns base off of the date field in order to get 4 columns,
1.day, 2.month, 3.week, 4.year
The formulas that populate these colums look like the following.
if {startdate} >=(currentdate-7) and {startdate} <currentdate then {Hours}
I end up with columns similar to the following ex.
start date Day Week Month
6/29/2008 0 0 0
6/30/2008 0 16.10 16.10
7/1/2008 0 292.91 292.91
7/2/2008 0 185.20 185.20
7/3/2008 0 227.35 227.35
7/4/2008 0 213.78 213.78
7/5/2008 0 220.12 220.12
7/6/2008 191.70 191.70 191.70
7/7/2008 0 118.23 118.23
I need to get the min max,and avg values for only set where there is data because the other dates don't apply.
I can get a max value but I am having problems getting the min and avg because it is including the zeroes which should not be included.