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