Does someone know if it is possible to do :
sum(sum(amount, salesrep), product)
or sum(max(goals, salesrep), product)?
I tried but CR says that is not possible to summarize ....even i use whileprintingrecords....
thx
This assumes that you have group #1 = product, and group #2 on salesrep. Your first example is probably just:
sum({table.amt},{table.product})
For the second example, you would use variables:
//{@reset} to be placed in the group header for product:
whileprintingrecords;
numbervar sumgoals := 0;
//{@accum} to be placed in the group header or footer for salesrep:
whileprintingrecords;
numbervar sumgoals := sumgoals + maximum({table.goals},{table.salesrep});
//{@display} to be placed in the product group footer:
whileprintingrecords;
numbervar sumgoals;
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.