> For the complete documentation index, see [llms.txt](https://docs.fabricplan.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fabricplan.com/planning-sheets/how-tos/infobridge/data-transformations/add-column.md).

# Add Column

## Add columns in Infobridge

Use transformation commands on the **Transform** ribbon to create calculated measures, dimensions, split columns, and conditional columns. These transformations enrich bridge data without modifying the source report and cascade to downstream reports.

### Open transformation commands

After creating a bridge, open the **Transform** tab to access data transformation options.

The Transform ribbon provides these commands:

* Add Measure
* Add Dimension
* Split Column
* Conditional Column

<figure><img src="https://257222532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUtolck8kt8atqxFPsEBn%2Fuploads%2Fs6caGEYrPyIqETTJakYH%2Fadd-column-interface.png?alt=media&amp;token=56dd1082-4306-47e9-9bf9-ee6fec7dc758" alt=""><figcaption></figcaption></figure>

### Add a measure

Use **Add Measure** to create calculated measures with expressions and built-in functions.

The following example creates a measure named **Gross Profit Margin (%)** that calculates profit as a percentage of sales.

1. On the **Transform** ribbon, select **Add Measure**.
2. Enter **Gross Profit Margin (%)** as the measure name.
3. Select **Formula**.
4. Enter the following expression:

   ```
   ("Sum of Profit" / "Sum of Sales") * 100
   ```
5. Select **Apply**.

<figure><img src="https://257222532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUtolck8kt8atqxFPsEBn%2Fuploads%2FZOEJTZSc1DrxOhYUq6md%2Fadd-measure-configuration.png?alt=media&amp;token=766ce67c-bde7-40e7-bce3-85b5987e8714" alt=""><figcaption></figcaption></figure>

The new measure appears in the bridge and is available for reporting and other transformations.

<figure><img src="https://257222532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUtolck8kt8atqxFPsEBn%2Fuploads%2FjG79TLTqJeh2BwdVkane%2Fadd-measure-results.png?alt=media&amp;token=46801ac0-8465-447c-9434-608d7b797dee" alt=""><figcaption></figcaption></figure>

### Add a dimension

Use **Add Dimension** to create new dimensions with expressions and conditional logic.

The following example creates a **Profit Rating** dimension that categorizes records based on profit values.

1. On the **Transform** ribbon, select **Add Dimension**.
2. Enter **Profit Rating** as the dimension name.
3. Create a CASE expression that evaluates profit ranges and returns a category.
4. Select **Apply**.

Example logic:

```sql
CASE
WHEN "Sum of Profit" < 1000 THEN 'Decommission'
WHEN "Sum of Profit" > 1000 AND "Sum of Profit" < 5000 THEN 'Break even'
WHEN "Sum of Profit" > 5000 AND "Sum of Profit" < 10000 THEN 'Average Sales'
WHEN "Sum of Profit" > 10000 THEN 'Target achieved'
ELSE 'N/A'
END
```

<figure><img src="https://257222532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUtolck8kt8atqxFPsEBn%2Fuploads%2FPWvhKvqqZtnDjqqiUjyC%2Fadd-dimension-configuration.png?alt=media&amp;token=967efd72-9c45-4a72-84f0-a5599c3a72a3" alt=""><figcaption></figcaption></figure>

The new dimension appears in the bridge.

<figure><img src="https://257222532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUtolck8kt8atqxFPsEBn%2Fuploads%2FHDhRMyNS2Rafs2vy2hqG%2Fadd-dimension-results.png?alt=media&amp;token=0deaa11b-a52e-4606-9aa6-12f5342a6c87" alt=""><figcaption></figcaption></figure>

### Split a column

Use **Split Column** to divide a dimension into multiple dimensions with a delimiter or character position.

The following example splits the comma-separated values in the **Market & Geography** column into separate columns.

1. On the **Transform** ribbon, select **Split Column**.
2. Select **Market & Geography** as the target column.
3. Select **By delimiter** as the split type.
4. Enter a comma (`,`) as the delimiter.
5. Select **Apply**.<br>

<figure><img src="https://257222532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUtolck8kt8atqxFPsEBn%2Fuploads%2FshWCB1jGtfo3hd4vEoJZ%2Fsplit-column-configuration.png?alt=media&amp;token=3026e484-db6c-4af7-bff1-bed5b4a953bd" alt=""><figcaption></figcaption></figure>

The transformation creates separate columns for each value segment.

<figure><img src="https://257222532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUtolck8kt8atqxFPsEBn%2Fuploads%2FesuCTrawdqLGmyPSC34F%2Fsplit-column-results.png?alt=media&amp;token=c1a3bc93-9139-4066-b060-85077e983fd3" alt=""><figcaption></figcaption></figure>

### Add a conditional column

Use **Conditional Column** to create values based on business rules and conditions.

For example, a conditional column can categorize records into risk levels, regions, business segments, or other classifications.

#### Example: Categorize debt-to-equity ratios

The following example categorizes debt-to-equity ratios into risk levels.

| Debt-to-Equity Ratio | Risk Level    |
| -------------------- | ------------- |
| 2.5                  | Moderate Risk |
| 1.8                  | Low Risk      |
| 3.0                  | High Risk     |

#### Example: Assign tax and shipping rates

The following example assigns tax rates and shipping rates based on region.

| Region        | Tax Rate | Shipping Rate ($) |
| ------------- | -------- | ----------------- |
| North America | 20%      | 50                |
| Europe        | 15%      | 70                |
| Asia          | 12%      | 60                |
| Africa        | 8%       | 40                |

#### Create a conditional column

Use conditional logic to create a **Global Market** column based on country values.

| Country                  | Global Market |
| ------------------------ | ------------- |
| Canada                   | NAMER         |
| France                   | EMEA          |
| Germany                  | EMEA          |
| Mexico                   | LATAM         |
| United States of America | DOMESTIC      |

1. On the **Transform** ribbon, select **Conditional Column**.
2. Enter **Global Market** as the column name.
3. Configure the required conditions and output values.
4. Optionally define a default value in the **Else** section.
5. Select **Apply**.

<figure><img src="https://257222532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUtolck8kt8atqxFPsEBn%2Fuploads%2FlBNXmxQsj12XOThAPLfb%2Fconditional-column-configuration.png?alt=media&amp;token=df739202-5b02-4380-ba73-8f447b57ac08" alt=""><figcaption></figcaption></figure>

The new conditional column appears in the bridge.<br>

<figure><img src="https://257222532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUtolck8kt8atqxFPsEBn%2Fuploads%2FfTdmF5yMLka5uOt5w9LH%2Fconditional-column-results.png?alt=media&amp;token=84981db2-edd7-4ec2-84ad-a85b88228a6a" alt=""><figcaption></figcaption></figure>


---

# 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.fabricplan.com/planning-sheets/how-tos/infobridge/data-transformations/add-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.
