Calculation Property - Sum of Deal Value Over Past 365 Days

Hello,

I’m looking for help setting up a calculation property.

Goal: Create a Contact (calculation) property that outputs the sum of the value of all deals associated to the specific contact over the past 365 days.

Additional Question: Is there a way to make the formula only include deals with a specific ‘deal owner’ set?

Hi @theDMM,

Currently, when you’re building a calculation property that references associated records, you’re limited to one condition (date range and owner would be 2) and unfortunately, conditions don’t support date filters. In the screenshot below you can see that there aren’t any options to add further filters:

To accomplish what you’re trying to do, you would first have to package both the date range information and the owner into a custom property value that can be used for the additional condition.

To do so, you would:

  1. Create a deal single checkbox property (e.g. “Matching owner and deal close date within last 365 days”)
  2. Create a deal-based workflow that enrolls deals when the deal owner is X and the close date is less than 365 days ago, then set the property from step one to “Yes”
  3. Create another deal-based workflow that enrolls deals when close date is more than 365 days ago, then set the property from step one to “No”
  4. Use that property as a condition within the calculation property as shown in my screenshot

Best regards!

Hi Karsten, thank you for your reply. It sounds like this could potentially work for us.

Question: Using this method, we would have to create a new deal single checkbox property (step 1) for every sales rep then, correct? Thinking if this is the simplest solution, or if there is another way to accomplish this.

Context: We assign customers to our sales reps. We unassign customers from sales reps if they do not meet the following criteria: (a) the sales rep has made a sale to the customer within the past 90 days, or (b) the sales rep has sold at least $10,000 over 365 days - Requirement (b) is what I’m trying to figure out.

@theDMM if you want this value by sales rep, you would need one calculation property per sales rep - and one assisting property, yes. I’m not aware of a simpler solution, unfortunately, that doesn’t require custom code.