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 2845 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have a list of records where I'd like to sum values from one of the fields but "in groups". Each group effectively shares a value in another field. If those other common values match, records in that subset of records are summed.
Here's an illustration of my data set and the calculation I'm trying to find.

Common value       Summed value       Sum result (calculation field)

1111                       5                             8

2222                      10                           33

1111                       3                             8

2222                      10                           33

2222                      13                           33

 

Thank you!

Posted (edited)

The simple way to do this is to sort the records by the "Common Value" field (which in Filemaker's language is called the break field). Then use a summary field, placed in a sub-summary part, to show the subtotal for each sorted group.

 

 

Edited by comment
Posted (edited)

I've considered that but my implementation requires Sum result to be picked up downstream via portal. I'm not working with a classic report layout.

SOLUTION: I moved my calculation field into the portal itself (since that was the implementation I needed in the first place), then it's just a matter of Sum() function targeting the portal field I needed to get total of. Since the portal already limits the records to the common value via relationship, that fixed my issue. Thanks.

Edited by McScripta
Posted
14 hours ago, comment said:

I am afraid you've lost me at this point.

:B ...I can hardly follow what I'm doing here myself. Thank you for your input!

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