HubSpot Ideas

annemarien

Populate a property with the sum of a property on associated records

For example, if we have a custom amount property on Contact records called "Engaged Value", on the Company record we want a field "Total Engagement for all Contacts" that always shows the current sum for the "Engaged Value" of all the associated contact records.

 

We actually need it for Deals-Invoice (custom object) relationship so we can show the total invoiced amount on the deal, so the solution will need to work on custom objects as well as standard objects.

6 Replies
Bob2245
Top Contributor | Platinum Partner

Same question here. I run products through Custom Objects (as Products isn't customizable enough for our purpose here), and would like to sum the price (custom object property) of each product into the Deal amount field. 

Josephtylerk
Member

Our CRM has multiple deals under one company.  One required deal property is an ARR calculation.  It would be nice for the collective deal's ARR populate on the About this Company section of the Company record. 

Bob2245
Top Contributor | Platinum Partner

@Josephtylerk @annemarien You can solve this using a calculation property type. You can do a SUM (or AVG, Min or Max) calculation within the settings to sum the value of a numeric field of all associated records, just like you describe:

 

Bob2245_0-1661674239810.png

 

VSmith2012
Member

We need to be able to sum the total of a custom deal field (revenue billed to date) on the company record to be able to calculate company margin on all deals.

VSmith2012
Member

@Bob2245 Are you suggesting creating this property on the company record?

 

Bob2245
Top Contributor | Platinum Partner

@VSmith2012 Yep - custom calculation property on the Company, type Sum and then choose the associated record type Deal, possibly association labels and then choose your Revenue billed to date property.