Calculated fields

Last updated: December 3, 2026

A calculated field is a field that uses special syntax to derive new values from data you already send to Unwrap, without changing anything in your source system (for example Zendesk, Intercom or Decagon).

For example, you can use a calculated field to:

  • Turn a score into labelled groups (for example, NPS 9–10 → Promoter, 7–8 → Passive, 0–6 → Detractor)

  • Split a hierarchical code into separate levels (for example, a single Symptom Code x_y_z into Level 1, Level 2 and Level 3 fields)

  • Replace codes with human-readable names from a mapping table you provide

  • Keep only the meaningful values from a field that holds many values, such as ticket tags, and drop the system-generated ones

Calculated fields appear in Unwrap just like any other custom field, so you can filter, group and chart by them.

How calculated fields are set up

Calculated fields are configured by the Unwrap team — there is currently no self-serve formula editor in the product. To request one, reach out to Unwrap with the functionality you want in plain language and we'll set it up for you.

It helps to include:

  1. The name you'd like the field to have in Unwrap.

  2. Which connection(s) it should apply to, and which existing field it should

    be calculated from.

  3. The rule, described as you would to a colleague (see examples below).

  4. Example values from the source field, and what you'd expect the new field

    to show for each of them.

  5. What should happen when the source value is blank or doesn't match any

    rule — leave the new field blank, or keep the original value.

What calculated fields can do

Group values into buckets

Group a number or category into a smaller set of labels, such as scores into Promoter / Passive / Detractor, or response times into Same day / Next day / Later.

Split a value into parts

Split a structured code on a separator and take one part per field. This is common for hierarchical codes such as:

product__billing__refund → Level 1: product, Level 2: billing, Level 3: refund

Each level becomes its own field, so you can report on any level of the hierarchy independently.

Replace codes with human-readable names

Provide a mapping table (a spreadsheet is fine) of code → display name, and the calculated field will show the friendly name instead of the code. If you have several related fields (such as Level 1 / 2 / 3 versions of the same code), a single mapping table with one column per level works well.

Send us the full code, not just the last part of it — the same ending can occasionally belong to different branches of a hierarchy and mean different things in each.

Filter values out of a multi-value field

Some fields, like Zendesk tags, can hold many values on a single ticket — including system-generated tags with no business meaning. A calculated field can look at each value in turn and only keep the ones you care about. Values can be filtered by:

  • An exact list of values to exclude (or, conversely, only keep)

  • Text patterns — for example, values that start with, contain, or end with a certain word or prefix

  • Regular expressions (regex), for excluding whole families of similar values without listing each one individually

Good to know:

  • Filtering only affects the calculated field. It does not remove values from the original field, change the ticket, or affect what is imported.

  • If every value on a ticket is filtered out, the calculated field is simply blank on that ticket.

  • An exact list is usually safer for a small, stable set of values. A pattern or regex is better when system tags follow a predictable shape and new variants keep appearing — share a few real examples and we can advise.

Clean up and combine values

Calculated fields can also tidy up values: trim extra spaces, standardise capitalisation, replace one term with another, extract part of a value (for example, with a pattern), join fields together, or fall back to a second field when the first is empty.

Use dates and numbers

Rules can compare numbers, do simple maths (such as rounding), or work out the time between two dates (for example, days from ticket creation to first response) and then group the result.

Updating an existing calculated field

Once a calculated field is live, you may need to add new codes, rename a label, or change which values are excluded. To make updates go smoothly:

  • Send updates, don't delete and recreate the field. Deleting a field can disconnect the history already recorded against it. We'll edit the existing field in place instead.

  • Send the updated mapping table and highlight what's changed — new, changed or removed rows — rather than asking us to diff two full tables.

  • Tell us if you're renaming, not just adding. Saved views and filters built on the old label may need to be updated to the new one.

  • Include a real example for each new value (for example, a ticket ID) so we can verify the new field shows what you expect.

  • Changes apply to newly imported feedback. If you'd like existing feedback re-mapped to match, let us know — we can scope that separately.

  • Unmapped values don't disappear by default. Unless you ask otherwise, a value that isn't in your mapping yet is shown as-is, which makes it easy to spot new codes that still need mapping.

Limitations to be aware of

  • A calculated field can only use data that is already on the feedback record in Unwrap — it can't pull in fields that aren't imported.

  • Calculated fields are evaluated when feedback is imported, so they don't retroactively change values on older feedback unless a re-mapping is requested.

  • If the source field is blank on a ticket, the calculated field will normally be blank too.

Request template

Copy and fill in the following when requesting a new calculated field or a change to an existing one:

  • Field name:

  • Connection(s) it applies to:

  • Existing field it's calculated from:

  • Rule in plain language:

  • Example source values and expected results:

  • Values or patterns to exclude (if any):

  • What should happen for blank or unrecognised values:

  • Should this also be applied to past feedback, or only new feedback? If past feedback, how far back should we backfill the field?

Contact your Unwrap team or support with the above, and we'll configure the field and confirm once it's live.