> For the complete documentation index, see [llms.txt](https://docs.jetadmin.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.jetadmin.io/user-guide/data/computed-fields.md).

# Computed fields

Choose formulas, lookups, rollups, or JavaScript to derive field values.

Computed fields derive values from existing data. Choose the method that matches the calculation.

| Task                                         | Guide                                                               |
| -------------------------------------------- | ------------------------------------------------------------------- |
| Calculate, combine text, or apply conditions | [Formulas](/user-guide/data/computed-fields/formulas.md)            |
| Display a value from a linked record         | [Lookup](/user-guide/data/computed-fields/lookup-column.md)         |
| Aggregate values from related records        | [Rollup](/user-guide/data/computed-fields/rollup-column.md)         |
| Write a custom calculation                   | [JavaScript](/user-guide/data/computed-fields/javascript-column.md) |

Create the [relationship](/user-guide/data/relationships.md) before configuring a lookup or rollup.

## Add and verify a calculation

1. Choose the required fields and decide what result you expect for a sample record.
2. Add the computed field and configure its formula or related values.
3. Compare the result with a manual calculation.
4. Check a record with missing values and one with no related records.

Computed values are derived outputs. Edit their inputs to change the result. Availability of filtering and sorting depends on the field type and context.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.jetadmin.io/user-guide/data/computed-fields.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
