> For the complete documentation index, see [llms.txt](https://docs.powertable.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.powertable.com/explore-powertable/working-with-powertable/column-setup/add-visual-column/reference-column.md).

# Reference Column

Adding a reference column involves connecting one table to another based on matching columns, enabling you to reference the required columnar data from the connected tables for each record.

When you have multiple tables with a few shared columns, you can easily add reference columns to refer to data from the connected tables.

#### To add a reference column:

1. Go to **Setup > Columns.**

<figure><img src="/files/NXiNWWWhikOoyid4do9g" alt=""><figcaption><p>Setup > Columns</p></figcaption></figure>

2. Click **Add Visual Column > Add Reference Column.**

<figure><img src="/files/7PH9KiP9mgwKCT9gpPFE" alt=""><figcaption><p>Add Reference Column</p></figcaption></figure>

Alternatively, you can insert a new column from the 'Home' tab, as shown below:

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

3. Enter the name of your visual column. We want to include the order date, so we enter the name 'Order Date'. We can also change the type to 'Date'.

<figure><img src="/files/pBKYvVfx28EHjcX1k4uD" alt=""><figcaption><p>Type and Column Name</p></figcaption></figure>

4. Let us now enter the column and table details that we want to refer to. Enter the connection details, schema name, reference table name, column to be referenced, and the column that corresponds to both current and reference tables. Click **Save.**

In the example below, we have referred to the 'Orderdate' column from the 'Sales' table, whose connection details we have entered.

<figure><img src="/files/nEaAo3zdSLTlK5nrUZAt" alt=""><figcaption><p>Table details</p></figcaption></figure>

The visual column is added to the table, and it looks as shown below:

<figure><img src="/files/rZmrpdRYyqeIiksVzUOQ" alt=""><figcaption><p>Reference column added</p></figcaption></figure>

Reference columns are non-editable, and their values only change when the underlying column values change.


---

# 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.powertable.com/explore-powertable/working-with-powertable/column-setup/add-visual-column/reference-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.
