---
schema_version: "1"
id: 292dd3306ee69f7506177bbae82eaa464d46d69c87dcd966241f647203b7ead6
title: quota
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/sales/264-0-0/spiff_function_ref_quota.md
canonical_url: https://help.salesforce.com/s/articleView?id=sales.spiff_function_ref_quota.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: c8213a6a4e19d2d4444e914e3d47488b4c08b6abeac9955175f1df7f57177e7a
description: Returns a quota value from a quota table in Salesforce Spiff. To sum values across multiple reps for a specific quota, use the quotas() function instead.
products:
  - Sales Cloud
  - Sales Enablement
release: "264"
---
# quota

Returns a quota value from a quota table in Salesforce Spiff. To sum values across multiple reps for a specific quota, use the `quotas()` function instead.

### 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>

## Syntax

```
quota(quota_name, date, rep_id)
```

## Arguments

  
| Argument | Required? | Description |
| --- | --- | --- |
| quota\_name | Required | The name of a quota from a quota table, enclosed in double quotes. This argument updates automatically when the name of the quota table changes. |
| date | Optional | The date for a specific statement period to a quota value for. This argument supports any date functions. To specify a date as a string in YYYY-MM-DD format, use the `date()` function and enclose the string in double quotes. If you don't specify a date, this function defaults to the current period. |
| rep\_id | Optional | The ID of a user to return a quota value for. |

## Example

Return a quote for a specific user, Teresa Lee. Create a data filter on the User object that contains only the rep, and use the `single()` function within the `quota()` function to select the user from the data filter's list.

```
=quota("CorporateAEQuarterlyQuota", statement_period.start_date, single(TeresaLee))
```

To create a list of all user quotas for a specific plan, go to the User object and use the `quota()` function with the `user` keyword.

```
=quota("CorporateAEQuarterlyQuota", statement_period.start_date, user)
```

Return a yearly quota value from 12 months before the current statement period.

```
=quota("CorporateAEQuota", months_ago(statement_period.start_date, 12))
```

Return a monthly quota amount a specific month.

```
=quota("CorporateAEMonthlyQuota", date("2024-02-01"))
```

Return a monthly quota amount from the previous month.

```
=quota("CorporateAEMonthlyQuota", months_ago(statement_period.start_date, 1))
```

#### See Also

- [months\_ago](https://help.salesforce.com/s/articleView?id=sales.spiff_function_ref_months_ago.htm&release=264.0.0&type=5 "Returns the date that's a specified number of months before another date in Salesforce Spiff.")
- [single](https://help.salesforce.com/s/articleView?id=sales.spiff_function_ref_single.htm&release=264.0.0&type=5 "Returns the first and only record of a list in Salesforce Spiff. This function validates that only one record is returned and converts the list of records into an individual record.")