> For the complete documentation index, see [llms.txt](https://docs.bdb.ai/bdb-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bdb.ai/bdb-documentation/data-visualization/self-service/design/formula-field-editor/creating-a-formula.md).

# Creating a Formula

{% hint style="success" %}
*Check out the given walk through on the complete flow of Formula creation.*
{% endhint %}

![Creating a Formula Field](/files/QU4E6oNvCpcrJyD9i84K)

The user can select two level options to create the Formula Field.

1. **Record Level:** This option allows the user to save the Formula field as Dimension or Measure using the ***Save as*** drop-down menu.
2. **Summary Level:** This option saves the created Formula Field as a Measure only.&#x20;

{% hint style="info" %}
*<mark style="color:green;">Please Note:</mark>*

* *Click the **Delete** icon to remove the selected Formula Field.*
* *Click the **Formula Field Editor*** <img src="/files/zhw8ZKCEGELNgjzVXQ0x" alt="" data-size="line"> *icon to open the **Create Formula** window.*
* *If the name already exists for the formula, it will show a message, "Name already exists".*
  {% endhint %}


---

# 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://docs.bdb.ai/bdb-documentation/data-visualization/self-service/design/formula-field-editor/creating-a-formula.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.
