> ## Documentation Index
> Fetch the complete documentation index at: https://oculon.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Transaction structure

> Understand how the Date Column, variables, and Segment by fields shape Transactions and what models can read from them.

A Transactions table is a grid of rows and columns. Each row is one record. Each column plays one of three roles: a date, a variable, or a dimension. Those roles decide how a linked model reads the records.

## Column roles

You assign column roles in **Transactions Settings**:

| Role | Setting | What it does | Example |
| :- | :- | :- | :- |
| Date | **Date Column** | Places each record in a time period | `Invoice Date` |
| Variable | **Variables** | Holds values a model can use, such as amounts, counts, dates, rates, or flags | `Amount`, `MRR`, `Is Renewal` |
| Dimension | **Segment by** | Maps a field to a workspace dimension, so values can break down by category | `Region`, `Plan` |

Fields you don't assign stay out of the variables and dimension columns.

## Date Column

The Date Column tells Oculon when each record happened. A linked model uses it to place values in the right month, quarter, or year.

Integration-backed Transactions need a Date Column. If you don't set one, saving shows `Date Column must be configured`. For manual Transactions, you can create a date column in the same setting.

## Variables

Variables are the value fields in Transactions, such as `Amount` or `MRR`. These are the values a model's formulas can reference after you link the Transactions.

Each variable has a type. Transactions use the same five types as model variables:

| Type | Use it for | Example |
| :- | :- | :- |
| **Number** | Counts and plain quantities | `Units Sold` |
| **Currency** | Money amounts | `Amount`, `MRR` |
| **Date** | Calendar dates | `Renewal Date` |
| **Percentage** | Rates and ratios | `Discount %` |
| **Boolean** | True or false flags | `Is Renewal` |

The type controls how values display, the same way it does in a model. See [Variable types](https://oculon.mintlify.site/concepts/data-and-structure/variables/variable-types.md).

In the grid, you can add a variable column with **Add** → **Variable**.

## Segment by

**Segment by** maps a field to a [dimension](https://oculon.mintlify.site/concepts/data-and-structure/dimensions/overview.md). For each field, you pick an existing workspace dimension or add a new one. For example, you map the `Region` field to the `Region` dimension.

Each dimension can map to only one field in the same Transactions table.

Because dimensions belong to the workspace, a model that uses the same dimension can break Transactions values down by the same categories. In the grid, you can add a dimension column with **Add** → **Dimension**.

## Keep one record per row

Decide what one row represents, and keep it that way. For example, use one invoice per row, or one customer per month.

When a single table mixes grains, such as invoice lines and invoice totals, the values double-count when a model sums them.

## Change structure carefully

Models, views, and boards may depend on your columns. Before you rename a field, remove a variable, or change a Segment by mapping, check which models use the Transactions. See [Linked data](https://oculon.mintlify.site/concepts/data-and-structure/transactions/linked-data.md).

## Related

* [What is a transaction](https://oculon.mintlify.site/concepts/data-and-structure/transactions/overview.md)
* [Working with data](https://oculon.mintlify.site/concepts/data-and-structure/transactions/working-with-data.md)
* [Linked data](https://oculon.mintlify.site/concepts/data-and-structure/transactions/linked-data.md)
* [What is a dimension](https://oculon.mintlify.site/concepts/data-and-structure/dimensions/overview.md)
* [Time granularity](https://oculon.mintlify.site/concepts/data-and-structure/time/time-granularity.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.