Hello All,
I am using CR XI. I'm totally new to CR. I am creating a Sales report with many different parameter and sort options for the user to select from. One of the sort options is descending by total $ sold per customer. Because of CR's multi-pass processing I cannot sort on a running total or a summary. So I tried creating a formula to calculate the total $ but it doesn't work quite right.
Here are the formulas I have now:
@total - placed on Detail(will be suppressed)
global numbervar total := total + {VENDOR_SALES.AMT_SOLD}
(If I use WhilePrinting I get the right $ but I still can't sort on it. If I use EvaluateAfter I can sort on it but the final $ isn't quite right)
@reset total - placed on Group Header
WhilePrintingRecords;
global numbervar total := 0
@disp total - placed on Group Footer
WhilePrintingRecords;
global numbervar total
Any suggestions or better alternatives are appreciated.
I am using CR XI. I'm totally new to CR. I am creating a Sales report with many different parameter and sort options for the user to select from. One of the sort options is descending by total $ sold per customer. Because of CR's multi-pass processing I cannot sort on a running total or a summary. So I tried creating a formula to calculate the total $ but it doesn't work quite right.
Here are the formulas I have now:
@total - placed on Detail(will be suppressed)
global numbervar total := total + {VENDOR_SALES.AMT_SOLD}
(If I use WhilePrinting I get the right $ but I still can't sort on it. If I use EvaluateAfter I can sort on it but the final $ isn't quite right)
@reset total - placed on Group Header
WhilePrintingRecords;
global numbervar total := 0
@disp total - placed on Group Footer
WhilePrintingRecords;
global numbervar total
Any suggestions or better alternatives are appreciated.