I have two formulas that I need to do running totals:
1) @RemainingQuantity
2) @Ext
I have the following formulas for the first (@RemainingQuantity):
@SetManSum: (Suppressed in the Group Header)
WhilePrintingRecords;
NumberVar Mansum;
Mansum:= 0;
@GetManSum: (Suppressed in the Details)
WhilePrintingRecords;
NumberVar Mansum;
If{poitem.forgpdate} = {poitem.flstpdate} then
Mansum:= Mansum + {@Rem Qty} else ManSum;
@DisplayManSum: (In the Group Footer)
WhilePrintingRecords;
NumberVar Mansum;
Mansum;
Then I created the following for the @Ext:
@SetManSum2: (Suppressed in the Group Header)
WhilePrintingRecords;
NumberVar Mansum;
Mansum:= 0;
@GetManSum2: (Suppressed in the Details)
WhilePrintingRecords;
NumberVar Mansum;
If{poitem.forgpdate} = {poitem.flstpdate} then
Mansum:= Mansum + {@Ext} else ManSum;
@DisplayManSum2: (In the Group Footer)
WhilePrintingRecords;
NumberVar Mansum;
Mansum;
If I have both sets in the report they both return the total for the @ext. If I only have the three for the @Remaining Quantity, it returns the correct total.
I am using CR10.0 with SQLServer.
Thanks!
Jeff
1) @RemainingQuantity
2) @Ext
I have the following formulas for the first (@RemainingQuantity):
@SetManSum: (Suppressed in the Group Header)
WhilePrintingRecords;
NumberVar Mansum;
Mansum:= 0;
@GetManSum: (Suppressed in the Details)
WhilePrintingRecords;
NumberVar Mansum;
If{poitem.forgpdate} = {poitem.flstpdate} then
Mansum:= Mansum + {@Rem Qty} else ManSum;
@DisplayManSum: (In the Group Footer)
WhilePrintingRecords;
NumberVar Mansum;
Mansum;
Then I created the following for the @Ext:
@SetManSum2: (Suppressed in the Group Header)
WhilePrintingRecords;
NumberVar Mansum;
Mansum:= 0;
@GetManSum2: (Suppressed in the Details)
WhilePrintingRecords;
NumberVar Mansum;
If{poitem.forgpdate} = {poitem.flstpdate} then
Mansum:= Mansum + {@Ext} else ManSum;
@DisplayManSum2: (In the Group Footer)
WhilePrintingRecords;
NumberVar Mansum;
Mansum;
If I have both sets in the report they both return the total for the @ext. If I only have the three for the @Remaining Quantity, it returns the correct total.
I am using CR10.0 with SQLServer.
Thanks!
Jeff