# Add Custom Column to Table

This guide explains how to add a custom column to an existing table in the dashboard. A **custom column** is a calculated column defined with a formula that uses other columns (e.g. \[Clicks]/\[Impressions]). Custom columns are available in both the table view and any chart that uses the same visualization data (e.g. when you switch the same block to a line or bar chart). Use it when you want metrics like CTR, CPA, ROAS, or any expression built from existing numeric columns without changing the data source.

### Steps to Add Custom Column:

1. **Open visualization settings**

   * Click the **Settings** (gear) icon on the table block.
   * In the right-hand panel, select the **Chart** tab.

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

   * Scroll below to the **Custom Columns** section.

   <figure><img src="/files/gmVH25vkDXfkoHxMyNIy" alt=""><figcaption></figcaption></figure>
2. **Add a new column**

   * Click **Add Custom Column**.
   * From the **Available columns** click a column to insert it into the formula, you can also manually type the column name in the **Formula** within square brackets (e.g. \[clicks]).
   * You must name the formula you have generated, inside the **Formula Name** field, this will also appear as the column label.

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

   * Since spaces are not allowed in the formula name, if you want a space to appear in the column label, add an underscore ( ‘\_’ ) between words (e.g. ‘average\_cpm’ will appear as ‘Average Cpm’ on the table).

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


---

# Agent Instructions: 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:

```
GET https://docs.smaq.io/documentation/features/dashboard/add-custom-column-to-table.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
