> ## Documentation Index
> Fetch the complete documentation index at: https://runway-5055a12e-mintlify-formula-column-documentation-75200.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Commissions

> This doc will explain how to connect your Sales Team database to a Deals database sourced from your CRM (e.g., Salesforce or Hubspot), and build commission logic.

## Step 1: Map CRM deal owners to AEs

To align commissions to individual AEs, you’ll need to connect CRM data to HRIS data.

1. Create a new database called **Account Owner Mapping**. Select your **Sales Team** database as the source and segment by **Name**.
   <img src="https://mintcdn.com/runway-5055a12e-mintlify-formula-column-documentation-75200/0BiKd8Q8ungGiehP/images/commissions/Commissions-data-config.png?fit=max&auto=format&n=0BiKd8Q8ungGiehP&q=85&s=eb2013085bab0e0acda0436ff3c45c19" alt="Commissions Data Config Pn" width="2754" height="804" data-path="images/commissions/Commissions-data-config.png" />

This will create a line for each **Name** value in the **Sales Team** database.

2. Add a new dimension column and search for **Deal Owner**. Naming may vary depending on your HRIS integration. You can always check your **Deals** database for the exact dimension name.
   <img src="https://mintcdn.com/runway-5055a12e-mintlify-formula-column-documentation-75200/0BiKd8Q8ungGiehP/images/commissions/setdealowner.png?fit=max&auto=format&n=0BiKd8Q8ungGiehP&q=85&s=8468463b2b30911439ba2dbdeb452edc" alt="Setdealowner Pn" width="2758" height="994" data-path="images/commissions/setdealowner.png" />
3. For each relevant row, select the matching **Deal Owner**. Skip rows for manually added new hires—they won’t exist in your CRM data.
   <img src="https://mintcdn.com/runway-5055a12e-mintlify-formula-column-documentation-75200/0BiKd8Q8ungGiehP/images/commissions/Account-owner-map.png?fit=max&auto=format&n=0BiKd8Q8ungGiehP&q=85&s=55b22e1b069973d148f89e752defa223" alt="Account Owner Map Pn" width="2762" height="848" data-path="images/commissions/Account-owner-map.png" />
4. In your **Deals** database, add a **Lookup** for the \*\*Name \*\*column.
   <img src="https://mintcdn.com/runway-5055a12e-mintlify-formula-column-documentation-75200/0BiKd8Q8ungGiehP/images/commissions/name-column-lookup.png?fit=max&auto=format&n=0BiKd8Q8ungGiehP&q=85&s=793abdadfc3d31a0bb3c944d369ba5ab" alt="Name Column Lookup Pn" width="2760" height="1212" data-path="images/commissions/name-column-lookup.png" />

This auto-matches the records for each line. You can think about this as a human-readable VLOOKUP() from Excel. For tidiness, you can hide one of the columns by right-clicking the column header and selecting **Hide in block.**

<img src="https://mintcdn.com/runway-5055a12e-mintlify-formula-column-documentation-75200/0BiKd8Q8ungGiehP/images/commissions/commisions-lookup-pairing.png?fit=max&auto=format&n=0BiKd8Q8ungGiehP&q=85&s=60b6a14728e845bd2d23258bcfe94167" alt="Commisions Lookup Pairing Pn" width="2760" height="1520" data-path="images/commissions/commisions-lookup-pairing.png" />

<Info>
  Note: As new employees are hired, you’ll want to revisit the **Account Owner Mapping** to connect their HRIS record to their CRM record.
</Info>

## Step 2: Add commission rate logic

Create a new number driver column in the **Deals** database called **Commission Rate**.

### **Option 1: Flat rate commission**

To set a flat commission rate %, you can select `Add default formula` from the column header sub-menu and hardcode a percentage.

<img src="https://mintcdn.com/runway-5055a12e-mintlify-formula-column-documentation-75200/0BiKd8Q8ungGiehP/images/commissions/flatcommission.png?fit=max&auto=format&n=0BiKd8Q8ungGiehP&q=85&s=bab7765cdf5288d46a3d275b27ae531b" alt="Flatcommission Pn" width="3024" height="1106" data-path="images/commissions/flatcommission.png" />

### **Option 2: Variable commission rates**

This example demonstrates how you can set assumptions based on dimension values. In this example, `New Business `deals earn an 8% commission, whereas `Renewals `earn a 3% commission.

* The formula references the dimension column `DEAL_TYPE` which only contains the two items: `New Business` or `Existing Business` .
* The logic of the formula reads: \_if DEAL\_TYPE = New Business apply an 8% Commission Rate, otherwise apply 3% Commission Rate. \_
  <img src="https://mintcdn.com/runway-5055a12e-mintlify-formula-column-documentation-75200/0BiKd8Q8ungGiehP/images/commissions/Newbusinessvsrenewals.png?fit=max&auto=format&n=0BiKd8Q8ungGiehP&q=85&s=919954793ec99cbfedfaa13a3ba7c63a" alt="Newbusinessvsrenewals Pn" width="3024" height="1378" data-path="images/commissions/Newbusinessvsrenewals.png" />

<Tip>
  Since commissions data is part of compensation, many model owners chose to anonymize commission rates and payouts. To do so, right-click on the driver column header and toggle \*\*Anonymize data. \*\*You can read more about Anonymizing data [here](https://docs.runway.com/guides/sharing/data-anonymization#data-anonymization)
</Tip>

### **Step 3: Add payout timing logic**

In many organizations, commission payouts are deferred until a contract has been active for a set period.

Create a new number driver in your **Deals** database called **Payout Date**. Use `dateAdd()` to add your delay to the deal’s close date. In this example, we assume a 90-day delay.

<img src="https://mintcdn.com/runway-5055a12e-mintlify-formula-column-documentation-75200/0BiKd8Q8ungGiehP/images/commissions/Delaypayment.png?fit=max&auto=format&n=0BiKd8Q8ungGiehP&q=85&s=09a7a97c7d960563bdca19aa01496d3b" alt="Delaypayment Pn" width="3018" height="1310" data-path="images/commissions/Delaypayment.png" />

Check the values by clicking the Commissions Paid driver column header and selecting `Show as time series`. This view allows you to check whether the amounts paid land in the correct months.

<img src="https://mintcdn.com/runway-5055a12e-mintlify-formula-column-documentation-75200/0BiKd8Q8ungGiehP/images/commissions/commisions-paid-time-series.png?fit=max&auto=format&n=0BiKd8Q8ungGiehP&q=85&s=57cea13421b76f1930486bff6397727c" alt="Commisions Paid Time Series Pn" width="3022" height="1494" data-path="images/commissions/commisions-paid-time-series.png" />

## Step 5: Aggregate commissions by AE

The last step is to aggregate commissions paid by AE.

In your **Sales Team** database, add a number driver for \*\*Commissions. \*\*Set the formula to sum the **Commissions Paid** driver in your **Deals** database where `Name` is `This Name.`

<img src="https://mintcdn.com/runway-5055a12e-mintlify-formula-column-documentation-75200/0BiKd8Q8ungGiehP/images/commissions/formulathissegmentcommissions.png?fit=max&auto=format&n=0BiKd8Q8ungGiehP&q=85&s=bb670cc87be441a2b934ac31346f414a" alt="Formulathissegmentcommissions Pn" width="3024" height="1180" data-path="images/commissions/formulathissegmentcommissions.png" />

By showing the driver column COmmissions as a time series, we can verify the commissions roll up appropriately.

<img src="https://mintcdn.com/runway-5055a12e-mintlify-formula-column-documentation-75200/0BiKd8Q8ungGiehP/images/commissions/commissionssalesteam.png?fit=max&auto=format&n=0BiKd8Q8ungGiehP&q=85&s=f336e4ccc882f7444120c4e8ebad4fe7" alt="Commissionssalesteam Pn" width="3024" height="1044" data-path="images/commissions/commissionssalesteam.png" />
