How to make formula fields account for blank values?

We have territories associated to contacts. The contacts enrolled can only be associated to one territory and we have several property syncs that trickle down to the contact based on the territory. One of those fields is territory team which is calculated field on the territory, and I included as a screenshot. We have an issue where whenever the ETF or IS wholesaler changes this change does not change the territory team field for it to trickle it down. There are also instances

where one of those fields are blank but the team does not reflect. How do we make this formula so that whenever a change happens or one of the fields is blank it populates correctly? I added two screenshots to show the field formula and example of the field being incorrect.

Hi @cclark2,

You need to use an if statement and the is_known formula to first check if these fields have values - then adjust the output accordingly. The formula doesn’t know how to handle these “unknown” cases. This is also explained here: Create calculation and rollup properties (page search for “null value”)

  • If field1 and field2 are known, output and concatene both
  • If not, check if field1 is known, if yes, output field1
  • If not, check if field2 is known, if yes, output field2

Hubspot calculation properties don’t support if/else, so you need to nest the if statements.

Generative AI (including Breeze) can help with the formula - if you’re getting stuck, let me know!

@neerajbhakta please be careful not to spread misinformation.

  • Calculation properties do not allow for specify when exactly updates should be triggered. They update in almost real-time on their own.
  • There is no need for overwriting an old value - see above - calculation properties evaluate their formula in almost real-time on their own.
  • Since - see above - formulas evaluate in real-time, there is no such thing as a re-enrollment.