Jump to content

How to Perform Calc on Running Total Summary?


Werper

This topic is 8597 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies

Hello,

I am writing an inventory database where I need to have a running total summary based upon several variables. I am able to do a running total summary with no problem, and I can do the variables calculation too, but how do I perform both simutaineously? The field definitons don't seem to allow both a summary and calculation at the same time.

Any info would be greatly appreciated!

Thanks,

Tom Bardenwerper

[email protected]

Link to comment
Share on other sites

If I understand the question correctly, you want to take a summary field and base a calculation upon it. To do this you must use the GetSummary(field,break field) function.Say you wanted to add five to a total generated in a summary field. The calculation would look like:

ResultField =

Get Summary(TotalField,TotalField) + 5

for all the records in the file. To do the same thing in a Subsummary part based upon the field Category, the calculation would look like:

ResultField =

Get Summary(TotalField,Category) + 5

This is a silly example, but such calculations are useful in calculation percentages based upon summary numbers. -bd

Link to comment
Share on other sites

This topic is 8597 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.