Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

I have a parent table, call it Orders that has related records in lineItems. LineItems contains records for many orders, related to Orders by order_ID.

I want a calculated field in Orders that is a running total of all related records in lineItems.

I don't know how to do this sort of filtered calculation. :crazy2:

thnks

Posted

There is a good basis for making a need to know/nice to know distinction here - because what you wish to doesn't scale particular well.

There is a metaphorical difference between a spreadsheet and database I wish to stress here. Such figures might be cool as live updating calc's but in the database realm is it usually done by running a script and turn a special layout your data into a special form.

There is one more thing to consider, how would this summing up deal with canceled orders, ideally should a summary report be made where the data is most atomicly presented ... the Itemlines file. But if a cancelation only are done via a boolean field in Orders will the summary be inconsistent.

--sd

Posted

Thanks. I get what you're saying and appreciate the comments on spreadsheet vs database conceptual and structural distinctions.

Think you're right about keeping summary data at a lower level,the lineItems level, rather then trying to store it too high up the food chain.

Thnks

Posted

If you have a summary field in the child table (LineItems), you can place it on a layout of the parent (Orders) to get a sub-summary for each parent record. Not sure what "running" means in this context, unless you place the same summary field in a portal to the child table.

Alternatively, a calculation field in the parent table =

Sum ( Child::Value)

can provide a similar result.

This topic is 6194 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.