Crest Design
HubSpot 7 min read

HubSpot property comparison filters for lead and deal routing

HubSpot property comparison filters (November 2026) let segments and workflows compare two fields on a record. Routing patterns, API code and fixes.

Crest Design
Cover for a guide to HubSpot property comparison filters used in lead and deal routing.

This guide is for sales and marketing teams running HubSpot who want leads and deals routed by what is actually on each record, not by numbers someone typed into a filter months ago. HubSpot's November 2026 developer rollup confirmed that HubSpot property comparison filters are now available in segment and workflow filters: you can compare one property to another property on the same record instead of to a fixed value. You'll learn how the comparison works, three routing patterns we'd build with it, the API version for developers, and what to check when a filter misbehaves.

The problem: filters that only know fixed values

Ask a sales manager what they want flagged and you'll hear things like "deals that are below their target", "renewals where the close date has slipped past the contract end" or "leads who came back and nobody called them". Every one of those compares two values that belong to the same record.

Until now, HubSpot filters could only compare a property against a value you typed in. So teams built workarounds: a calculation property that subtracts one number from another, a hidden "gap" field updated by a workflow, or a custom code action that sets a yes/no flag. They work, but each one is another moving part that someone has to remember when the sales process changes. We've inherited portals where nobody could say why a "needs attention" flag existed or what kept it up to date.

How HubSpot property comparison filters work

A property comparison filter takes two properties of the same type on the same record and tests one against the other. HubSpot's documentation lists operators by property type:

  • Number: is equal to, is greater than, or is less than another number property (for example, Amount is less than a custom Target amount).
  • Date and datetime: is before or is after another date property (for example, Close date is after Contract end date).
  • Single-line text: is equal to another text property, compared without regard to letter case.

Two details matter more than the menu labels. First, the comparison is evaluated each time the filter runs, so an active segment keeps adding and removing records as either value changes. Second, both properties must live on the same object. A contact property can't be compared with a property on its associated deal in a single filter; for that you still need to copy a value across with a workflow, or use code. HubSpot also notes that not every operator supports property comparisons yet, so the options you see depend on the property type.

Comparison of an old HubSpot filter that checks a property against a fixed value with the new filter that checks it against another property on the same record.
A fixed-value filter goes stale; a property comparison follows each record.

How to compare two properties in HubSpot for lead and deal routing

The setup is the same in a segment and in a workflow's enrollment criteria. In a segment: go to CRM > Segments, create an active segment, add a property filter, pick the first property, then choose an operator such as is greater than property or is after another property and select the second property. In a workflow, the same operators appear when you add a property filter to the enrollment trigger or an if/then branch.

Here are three patterns we'd set up first.

1. The follow-up gap

Filter contacts where Recent conversion date is after Last contacted. That catches anyone who submitted a form after the last logged call, email or meeting. Point a workflow at the segment: create a task for the contact owner, wait, then reassign or notify a manager if the contact is still in the segment. As soon as a rep logs an activity, Last contacted moves forward and the contact drops out without anyone editing a list.

Flow showing a contact converting again, a segment that compares recent conversion date with last contacted date, and a workflow that creates a task or reassigns the lead.
A follow-up gap check built from two date properties on the contact.

2. Deals below their own target

Add a custom number property such as Target amount to deals (set from a quote, a price list or the rep). Then filter deals where Amount is less than Target amount and send them to a review queue. Each deal is judged against its own target, so you don't need separate filters per product line.

3. Renewals at risk

For subscription or retainer businesses, filter deals in the renewal pipeline where Close date is after a custom Contract end date. Those are renewals expected to close after the current agreement runs out, which is exactly what an account manager wants to see on Monday morning.

For developers: the same filter through the API

If your segments are created by an integration, the Segments API supports the same comparison. This Node.js snippet creates the follow-up gap segment against the 2026-09 version of the API. Store the token in an environment variable from a HubSpot app with the lists scopes, and change the property names if yours differ. Run it with a current Node.js LTS release, which has fetch built in.

// create-follow-up-gap-segment.mjs
const res = await fetch("https://api.hubapi.com/crm/lists/2026-09/", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.HUBSPOT_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    name: "Follow-up gap: converted since last contact",
    objectTypeId: "0-1", // contacts
    processingType: "DYNAMIC",
    filterBranch: {
      filterBranchType: "OR",
      filterBranchOperator: "OR",
      filters: [],
      filterBranches: [{
        filterBranchType: "AND",
        filterBranchOperator: "AND",
        filterBranches: [],
        filters: [{
          filterType: "PROPERTY",
          property: "recent_conversion_date",
          operation: {
            operationType: "datetime-comparative",
            operator: "IS_AFTER",
            comparisonPropertyName: "notes_last_contacted",
            includeObjectsWithNoValueSet: false,
          },
        }],
      }],
    },
  }),
});
console.log(res.status, await res.json());

The root branch must be OR with AND branches inside it; that structure is required by the API, not a style choice. Check the field names against the API version you call, because older reference pages show slightly different keys for comparative operations.

What we've learned building comparison filters

Property comparisons remove a lot of helper fields, but they reward a little planning.

  • Decide what "empty" means. A contact who has never been contacted has no Last contacted value, and a comparison against a blank isn't true or false in the way you might expect. Add a second OR branch for "Last contacted is unknown" so brand-new leads aren't missed.
  • Match the property types. A date picker property and a datetime property can behave differently around midnight and time zones. Where you can, compare like with like.
  • Retire the old helpers carefully. Before deleting a calculation property, check where it's used: reports, views, other workflows and integrations. We usually leave it hidden for a while, then remove it.
  • Keep cross-object logic out of it. If the rule needs a value from the company and the deal, copy the value onto one record with a workflow first, or keep a custom code action. Our guide to HubSpot custom code actions on Node.js 24 covers when code is still the better tool.

Troubleshooting

Symptom Likely cause Fix
The second property isn't in the dropdown It's a different type, or lives on another object Pick a property of the same type on the same object, or copy the value across with a workflow
New leads never enter the segment The comparison property is empty on new records Add an OR branch with "is unknown" for that property
Records enter and leave the workflow repeatedly Re-enrollment is on and both values keep changing Review re-enrollment triggers, or add a delay and a branch that re-checks the segment
The API returns a validation error Old payload keys, or the root branch isn't OR Match the 2026-09 reference and use the OR root with AND children

Questions people ask

Can HubSpot compare a contact property with a deal property?

Not in a single filter. Property comparisons work between two properties on the same record. Copy the value onto one object with a workflow, or use a custom code action when the logic is more involved.

Do I still need calculation properties?

For simple comparisons, often not. You'll still want them when you need the difference itself, such as the number of days between two dates for a report, rather than a yes/no test.

Does this affect existing integrations?

Not on its own. If your integration creates segments through the API, it's a good moment to move it to date-based API paths, as we explained in our post on HubSpot service keys and legacy private apps.

Why this matters for your pipeline

Lead routing is where small gaps turn into lost enquiries: a returning lead nobody calls, a renewal that slides past its end date, a discounted deal nobody reviews. Comparison filters let your HubSpot portal watch for those gaps using the data already on each record, with fewer helper fields to maintain and less to explain to the next person who inherits the portal.

A quick checklist to get started:

  • List the rules your team checks by hand that compare two values on one record.
  • Find the calculation properties and flags that exist only to support those rules.
  • Rebuild one rule as a snapshot segment, test it, then move it into a workflow.
  • Handle empty values with an extra branch, and only then retire the old helper.

If you'd like a hand cleaning up routing rules or wiring them into your site's forms, our HubSpot CMS development and CRM and lead routing teams are happy to talk it through.

(over to you)

Planning a build like this?

Tell us what you're building and we'll come back with ideas and next steps.