Chances are the field that your trying to create the running total on is a formula field that required some coding? If that is the case you could always do a manual Running total. What are you trying to get with the original formula?
I could be wrong, but I dont think you need the "whileprintingrecords."
If you can get rid of that, you should be able to do the running total.
Noxum, I've found that if a field isn't available in the list while making a Running Total Field, you cant make a manual running total [Count({fieldname})] because it will error at you about not being able to create the running total field.
If you are trying to get the running total of the result of that formula this is one way to do it:
//place this formula in the section that you want the total
//to reset in.
//(ie place in GH1 for a seperate running total for each group)
//**don't reset if for a grand total
FORMULA 1:
shared numbervar val:=0;
//place this formula in the same section as the existing
//formula. In preview you should see the formula adding up
FORMULA 2:
shared numbervar val:= val + {@exisiting_Formula}
//place this formula in the section you want the total to
//be displayed in.
FORMULA 3:
shared numbervar val;
val;
You can suppress formula 1&2 once you get the desired results
Hope this helps
Nate B
Thanks, putts. I removed the whileprintrecords; and I can get a total, but it is totalling all of the detail records. I just want a total for each group. (These are fixed percentages that must add up to 100%).
I haven 't looked at Noxum's advice yet. I'll try that next.
Note: this is how you do it through a custom formula field.
If you do it through a Running Total Field, use the Reset On option and select the group you want it to reset on.
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.