---
schema_version: "1"
id: eb791cfc57deea1f9b077b8797c20f38be860821544ab4f85a0edf0fa2f8b04b
title: Line-By-Line Rule Examples
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/sales/264-0-0/spiff_rules_line_by_line.md
canonical_url: https://help.salesforce.com/s/articleView?id=sales.spiff_rules_line_by_line.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: c35f57b99bd67562d4a6ead15cb9904d7beb31f7bf8e9b48f4fd6aa1a2e250e3
description: Payout rules let you create calculations that determine how your reps earn a commission. Line-by-line rules calculate a commission amount by applying a calculation to each item in a data filter such as a deal or an opportunity. Calculation output from each item is summed to get the total for the rule.
products:
  - Sales Cloud
  - Sales Enablement
release: "264"
---
# Line-By-Line Rule Examples

Payout rules let you create calculations that determine how your reps earn a commission. Line-by-line rules calculate a commission amount by applying a calculation to each item in a data filter such as a deal or an opportunity. Calculation output from each item is summed to get the total for the rule.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: both Salesforce Classic (not available in all orgs) and Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available for an additional cost in: <strong>Professional</strong> Edition with Web Services API Enabled</td></tr></tbody></table>

A common filter is for deals closed by a rep in a period. In this scenario, a rep has four deals in their closed-in period data filter.

![Showing a rep's deals](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-sales-sales_performance_management-264-0-0-production-enus/b1f2feb4-26b8-444f-97f7-be2349869d93/sales_performance_management/images/spiff/spiff_rules_example_deals.png)

Define a line-by-line rule calculation as 10% of the Deal Amount.This calculation appliesto the four deals. Each record has its respective deal amount multiplied by 10% to get the outputs in the Commission column. The output of these calculations in the Commission column is summed to get the rule total. Commission plans can be complex, but understanding the concept helps you determine what approach to take when building your own rules.

![Showing a rep's deals and commission outputs](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-sales-sales_performance_management-264-0-0-production-enus/b1f2feb4-26b8-444f-97f7-be2349869d93/sales_performance_management/images/spiff/spiff_rules_line_by_line_percentage_commission.png)

Another line-by-line rule example is when a rep earns $25 for each new subscription they sell. Every deal flagged as a new subscription is the data filter and each new subscription receives the $25 commission. The Commission column is the calculation applied to each deal. The rep earns $100 in total commission for this rule.

![Showing a rep's subscriptions and commission outputs](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-sales-sales_performance_management-264-0-0-production-enus/b1f2feb4-26b8-444f-97f7-be2349869d93/sales_performance_management/images/spiff/spiff_rules_line_by_line_subscription_outputs.png)