Hi there
Using Crystal Version 9.0, ODBC to MS SQL 2000.
My report is setup as below. Main report and subreport (actual hours).
I am using two variables to be total Actual hours within GF#2 and GF#1. Each of these are set to 0 within GH#2.
(subrpt)
Alloc Act Var. %Comp
Hrs Hrs
GH#1 Team (String) DV
GH#2 Ord Header (String) O457
GH#3 Resource No. (String) 43 17 26 39.53
RH12 12 12 0 100.00
GF#2 55 @subsum1
GF#1 55 @totalsum
GH#1 Team (String) HM
GH#2 Ord Header (String) O558
GH#3 Resource No. (String) 22 17 4 77.27
RH12 13 20 -7 100.00
GF#2 35 @subsum1
GF#1 35 @totalsum
RF 90 ?????
I need to setup another formula to supply a grand total for actual hours BUT (the clincher) if the variance between Allocated and Actual hours is >=0 then the Actual hours should be included in sum, if the variance is <0 then the Allocated hours should be totalled.
e.g. All the actual hours would be summed in above example with exception of variance of -7, 13 should be included within sum not 20. Total would be 59.
Sample of print out
(subrpt)
Alloc Act Var. %Comp
Hrs Hrs
Derwent Valley
O986
RH21 5 8 -3 100.00
RH13 16 4 12 25.00
0986 21 12 9 57.14
0700
RH13 5 10 -5 100.00
0700 5 10 -5 100.00
26 31
(31= 5+4+12+5+5)
Thanks for your help in advance.
Using Crystal Version 9.0, ODBC to MS SQL 2000.
My report is setup as below. Main report and subreport (actual hours).
I am using two variables to be total Actual hours within GF#2 and GF#1. Each of these are set to 0 within GH#2.
(subrpt)
Alloc Act Var. %Comp
Hrs Hrs
GH#1 Team (String) DV
GH#2 Ord Header (String) O457
GH#3 Resource No. (String) 43 17 26 39.53
RH12 12 12 0 100.00
GF#2 55 @subsum1
GF#1 55 @totalsum
GH#1 Team (String) HM
GH#2 Ord Header (String) O558
GH#3 Resource No. (String) 22 17 4 77.27
RH12 13 20 -7 100.00
GF#2 35 @subsum1
GF#1 35 @totalsum
RF 90 ?????
I need to setup another formula to supply a grand total for actual hours BUT (the clincher) if the variance between Allocated and Actual hours is >=0 then the Actual hours should be included in sum, if the variance is <0 then the Allocated hours should be totalled.
e.g. All the actual hours would be summed in above example with exception of variance of -7, 13 should be included within sum not 20. Total would be 59.
Sample of print out
(subrpt)
Alloc Act Var. %Comp
Hrs Hrs
Derwent Valley
O986
RH21 5 8 -3 100.00
RH13 16 4 12 25.00
0986 21 12 9 57.14
0700
RH13 5 10 -5 100.00
0700 5 10 -5 100.00
26 31
(31= 5+4+12+5+5)
Thanks for your help in advance.