Hi,
Using Crystal v9. I have the follwing already created:-
GH1 JobRef
GH2 Transaction Type (this is based on a formula)
Revenue
Invoice 1 £100.00
Invoice 2 £200.00
Total Revenue £300.00
Materials
Invoice 9 £50.00
Invoice 8 £75.00
Total Materials £125.00
GH2 Net Profit £175.00
What I then want to do in GH1 is to replicate the sub-total for each grouping (eg. Revenue, Materials) so that the result can be used in a further calculation.
So:-
GF1
Total Revenue £300.00 Revenue Budget xx.xx (avalable field) Variance (actual - budgeted)
Total Materials £125.00 Materials Budget xx.xx (available field) Variance (actual - budget)
I currently have the following formula replicated for each grouping (revenue, materials etc), however it only returns a value for the last group that appears within the details, so if there is a value against both revenue and materials it will onlt return a result against materials :-
whileprintingrecords;
if({@Main Groups})= "Materials" then
sum ({@Cost}, {@Main Groups})
else 0
Thanks for any help!!
Using Crystal v9. I have the follwing already created:-
GH1 JobRef
GH2 Transaction Type (this is based on a formula)
Revenue
Invoice 1 £100.00
Invoice 2 £200.00
Total Revenue £300.00
Materials
Invoice 9 £50.00
Invoice 8 £75.00
Total Materials £125.00
GH2 Net Profit £175.00
What I then want to do in GH1 is to replicate the sub-total for each grouping (eg. Revenue, Materials) so that the result can be used in a further calculation.
So:-
GF1
Total Revenue £300.00 Revenue Budget xx.xx (avalable field) Variance (actual - budgeted)
Total Materials £125.00 Materials Budget xx.xx (available field) Variance (actual - budget)
I currently have the following formula replicated for each grouping (revenue, materials etc), however it only returns a value for the last group that appears within the details, so if there is a value against both revenue and materials it will onlt return a result against materials :-
whileprintingrecords;
if({@Main Groups})= "Materials" then
sum ({@Cost}, {@Main Groups})
else 0
Thanks for any help!!