Adding extended columns to your tables
In Incentives, you can do even more with your data by adding extended columns to your tables. There are two extended column types available in the Data module:
Note
You can add extended columns only to Data and Custom tables.
Adding a calculated column to your table
You can add a calculated column to your table from the Data module. A calculated column is a column type that performs a calculation based on other columns in the table.
Note
You can add calculated columns only to Data and Custom tables.
From the list of tables in the Data module landing page, find the table you'd like to add a calculated column to.
Click the table, or click More actions (...) → View data.
Click + Add → Calculated column.
Type a name for the new column.
Note
Column names cannot contain spaces.
Create your formula in the Formula box:
From the Source drop-down menu, select the column for the calculation.
Add any functions or operators.
Click Add.
In the Row Viewer, calculated columns will have a green background with a calculated column icon to differentiate them from the other columns in your table.
Adding a formula to a calculated column
You can use several formula functions to set up the calculated columns that you want to add to your tables.
Function | Description | Example | Syntax | Notes |
---|---|---|---|---|
| This operator takes the average of the value within the brackets. | If a product has a set price, but sales reps can sell above or below this price, the following formula compares their average monthly sale value to the set price and pays commission based on their gross margin:
|
| |
| This operator takes the maximum value of a set of results. | If 5% commission is paid on each deal but there's a minimum of $5 per deal you earn, you can use the following formula to determine whether the 5% commission is higher than the $5 minimum:
|
| If you have an if statement similar to the following example: |
| This operator takes the minimum value of a set of results. | If 5% commission is paid on each deal to a maximum of $100, the following formula pays either 5% commission or $100, whichever is less:
|
| |
| This operator takes the aggregate of whatever is within the brackets and provides a total. | To calculate 5% of the value of each sale as commission:
|
| The use of |
Editing calculated columns
You can edit the data in a calculated column from the Row Viewer.
In the Row Viewer, hover over the name of the calculated column.
Click More options (...) → Edit column.
Edit the data in the calculated column.
Click Save.
Duplicating calculated columns
From the Row Viewer, you can duplicate an existing calculated column in your table and edit the data to create a new column.
In the Row Viewer, hover over the name of the calculated column.
Click More options (...) → Duplicate column.
Edit the calculated column as needed.
Click Save.
Deleting calculated columns
You can delete calculated columns from your table from the Row Viewer.
In the Row Viewer, hover over the name of the calculated column.
Click More options (...) → Delete column.
Click Delete.
Adding a lookup column to your table
You can add a lookup column to your table from the Data module. A lookup column uses conditions to extract data from a source table to add to the target table containing the lookup column.
Note
You can add lookup columns only to Data and Custom tables.
From the list of tables in the Data module landing page, find the table you'd like to add a lookup column to.
Click the table, or click More options (...) → View data.
Click + Add → Lookup column.
Select a table as your lookup source.
Select the column you want to look up.
Type a name for the new column.
Click Next.
Under Lookup rules, define the conditions for displaying the source values in your lookup column. You can add the following operators to your rules:
Equal to
Tip
For text columns, click the Match case checkbox to only show values with a matching case.
In range
Tip
Click the Inclusive checkbox to include the start and end values.
Click Add.
In the Row Viewer, lookup columns will have a purple background with a lookup column icon to differentiate them from the other columns in your table.
Editing lookup columns
You can edit the data in a lookup column from the Row Viewer.
In the Row Viewer, hover over the name of the lookup column.
Click More options (...) → Edit column.
Edit the data in the lookup column.
Click Next.
Edit the lookup rules.
Click Save.
Duplicating lookup columns
From the Row Viewer, you can duplicate an existing lookup column in your table and edit the data to create a new column.
In the Row Viewer, hover over the name of the lookup column.
Click More options (...) → Duplicate column.
Edit the lookup column as needed.
Click Add.
Deleting lookup columns
You can delete lookup columns from your table from the Row Viewer.
In the Row Viewer, hover over the name of the lookup column.
Click More options (...) → Delete column.
Click Delete.