I was hoping that someone could help me with this Crystal problem that Im
having:
I want to sum loan amounts at the group level. I have a group
selection criteria in the report which is still showing in the sum.
I have tried using a variable:
whileprintingrecords;
global numbervar sumloan; placed in report footer (this is what is
not totaling correctly) It returns the last loan amount.
whileprintingrecords;
global numbervar sumloan:= 0; placed in group header
whileprintingrecords;
global numbervar sumloan:= sumloan + {LOAN.LOAN_AMOUNT} placed in
group footer. This is returning the loan amt that I want totaled
for the first variable.
I believe that this is going to have to be accomplished by
using variables. There is several instances of the loan amount under
the group. Therefore each loan amt is being summed multiple times in
the total. This is why I only want the loan amt for the group, no
matter how many times it appears in the details section. Normally
this could be solved by using a running total, however, when you use
group selection expert, It doesnt really get rid of the data, its
still there to be included in the sum. I tried putting the formula
(that I use in the group select expert) in the running total, But it
still doesnt work because I want it based on the group, and you can
only do the group or the formula not both.
Can someone please tell me what Im doing wrong?
having:
I want to sum loan amounts at the group level. I have a group
selection criteria in the report which is still showing in the sum.
I have tried using a variable:
whileprintingrecords;
global numbervar sumloan; placed in report footer (this is what is
not totaling correctly) It returns the last loan amount.
whileprintingrecords;
global numbervar sumloan:= 0; placed in group header
whileprintingrecords;
global numbervar sumloan:= sumloan + {LOAN.LOAN_AMOUNT} placed in
group footer. This is returning the loan amt that I want totaled
for the first variable.
I believe that this is going to have to be accomplished by
using variables. There is several instances of the loan amount under
the group. Therefore each loan amt is being summed multiple times in
the total. This is why I only want the loan amt for the group, no
matter how many times it appears in the details section. Normally
this could be solved by using a running total, however, when you use
group selection expert, It doesnt really get rid of the data, its
still there to be included in the sum. I tried putting the formula
(that I use in the group select expert) in the running total, But it
still doesnt work because I want it based on the group, and you can
only do the group or the formula not both.
Can someone please tell me what Im doing wrong?