> ## Documentation Index
> Fetch the complete documentation index at: https://docs.runway.com/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/vafQYSeDpH6RaQ2G/images/commissions/Commissions-data-config.png?fit=max&auto=format&n=vafQYSeDpH6RaQ2G&q=85&s=cb6996a63ad61bb15c504efda417070b" 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/vafQYSeDpH6RaQ2G/images/commissions/setdealowner.png?fit=max&auto=format&n=vafQYSeDpH6RaQ2G&q=85&s=b8f22165c6b109aafc91abd842de18e6" 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/vafQYSeDpH6RaQ2G/images/commissions/Account-owner-map.png?fit=max&auto=format&n=vafQYSeDpH6RaQ2G&q=85&s=23fbcdf93434748729ad25273af106f8" 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/vafQYSeDpH6RaQ2G/images/commissions/name-column-lookup.png?fit=max&auto=format&n=vafQYSeDpH6RaQ2G&q=85&s=bd2f4bbc968d99ae02816554c5aab816" 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/vafQYSeDpH6RaQ2G/images/commissions/commisions-lookup-pairing.png?fit=max&auto=format&n=vafQYSeDpH6RaQ2G&q=85&s=cc9a271abda9a5ffa2e5b8451a6dd465" 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/vafQYSeDpH6RaQ2G/images/commissions/flatcommission.png?fit=max&auto=format&n=vafQYSeDpH6RaQ2G&q=85&s=3243db3aaefec59356e6a5b85d5fde84" 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/vafQYSeDpH6RaQ2G/images/commissions/Newbusinessvsrenewals.png?fit=max&auto=format&n=vafQYSeDpH6RaQ2G&q=85&s=5aff41a05e9f4b7be22d1082e5b46d48" 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/vafQYSeDpH6RaQ2G/images/commissions/Delaypayment.png?fit=max&auto=format&n=vafQYSeDpH6RaQ2G&q=85&s=455f79d203774174fea70e9c431b5f27" 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/vafQYSeDpH6RaQ2G/images/commissions/commisions-paid-time-series.png?fit=max&auto=format&n=vafQYSeDpH6RaQ2G&q=85&s=46a2a89fc5b316dd710f4c0bf4a6c41d" 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/vafQYSeDpH6RaQ2G/images/commissions/formulathissegmentcommissions.png?fit=max&auto=format&n=vafQYSeDpH6RaQ2G&q=85&s=e0658968513bd5f40df91db097858863" 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/vafQYSeDpH6RaQ2G/images/commissions/commissionssalesteam.png?fit=max&auto=format&n=vafQYSeDpH6RaQ2G&q=85&s=42b6d3fc5922d2ab0114f1b67ab088cc" alt="Commissionssalesteam Pn" width="3024" height="1044" data-path="images/commissions/commissionssalesteam.png" />
