> For the complete documentation index, see [llms.txt](https://endash-guidance-docs.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://endash-guidance-docs.gitbook.io/docs/dashboard/custom-formula-column.md).

# Custom formula column

## Overview

A **custom formula column** allows users a new column where each cell's value is dynamically calculated based on a formula. The formula can reference other columns, perform calculations, apply logical operations, or even use built-in functions.

#### Example:

If you have a dataset with columns "Price" and "Quantity", you could create a custom formula column called "Total Cost" that multiplies these two columns, with a formula like:

```mathematica
= {Price} * {Quantity}
```

## Open custom formula column pop-up

<figure><img src="/files/UadoTg05yp1ezu4dTtfe" alt=""><figcaption></figcaption></figure>

* For Table, you can create a Fx column by clicking on the icon next to the last column.

<figure><img src="/files/VzGJuPgsI59MlpzOXrTd" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/Xyk9bRB4yxX5kI3QSdYV" alt="" width="563"><figcaption></figcaption></figure>

* For other widgets, you can find the Fx icon when adding the column to create a widget.

## Create a custom formula column

<figure><img src="/files/ENL1AGcLxxXcHMiKZ1e7" alt=""><figcaption></figcaption></figure>

* You will be asked to fill in the Column name and the Formula

<figure><img src="/files/Eazm8vbPVl8lu6CMFHeF" alt=""><figcaption></figcaption></figure>

* Select the arrows next to Fields and Functions to browse and pick the desired column easily.

<figure><img src="/files/IacDskQ3xsaQdQ6gzDrn" alt=""><figcaption></figcaption></figure>

* You can input directly into the Formula field to display results close to the result.

<figure><img src="/files/LQJ1fTtudL99JnQcKxkF" alt=""><figcaption></figcaption></figure>

* Click the Save column button to finish the setup.
* Click the Discard button to go back to the previous state.&#x20;

<figure><img src="/files/oslkuwKKakoBndqsXZAl" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
You can check at the bottom of the field to see if the Fx column is aggregated or analytic.
{% endhint %}

<figure><img src="/files/lETDnOuALosEyPTzuFS6" alt=""><figcaption></figcaption></figure>

* The newly create Fx column will be on the right side of the Table.

<figure><img src="/files/kCwAeLi8BtE76BOrQSvp" alt=""><figcaption></figcaption></figure>

* For other charts, you can select it on the list.

## Edit a custom formula column

<figure><img src="/files/r91tLIj23Wc6MPyMgvRl" alt=""><figcaption></figcaption></figure>

* Click on the :pen\_fountain: icon of the Fx column.

<figure><img src="/files/GR9xjzffuWvkUaPmlmGk" alt="" width="563"><figcaption></figcaption></figure>

* Click on the Formula text.

<figure><img src="/files/pEQe7JX8lB82lqP4SbKp" alt=""><figcaption></figcaption></figure>

* You can click directly on Properties to edit it.

{% hint style="info" %}
This column is local to the View and won’t impact the data model
{% endhint %}

{% hint style="warning" %}

* In pivot, aggregated/analytical columns can only be used in Values.
* In the vertical bar, the aggregated/analytical column can only be used for the Y-axis.
  {% endhint %}

## Delete a custom formula column

<figure><img src="/files/NzELZJaKIZc2MbeJnyxc" alt="" width="363"><figcaption></figcaption></figure>

* Simply click the Delete button in the Edit column to delete the Fx column.


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://endash-guidance-docs.gitbook.io/docs/dashboard/custom-formula-column.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
