Or you could use a running total. If you use running totals, they are working out at the same time as the Crystal report formats the line. This means you can show them in the group footer but not the group header, where they will be zero if you are resetting them for each group.
If you use summary totals, they are taken directly from the data and can be shown in the header. They can also be used to sort groups, or to suppress them.
It helps to give your Crystal version, since newer versions have extra options, and some extra problems. I use Crystal 8.5
Right click on this formula and insert a summary (SUM, not count). Create separate formulas for "ST" and "pm", and insert sums on them at the group and grand total levels.
You could also use running totals (a separate one for each), specifying in the evaluate based on a formula area:
{table.field} = "DP"
Reset on change of group.
However, running totals generally are slower than using formulas, and you would have to create separate ones if you also want grand totals.
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.