Sub topic 14
How Opportunities Feed Forecasts
This chapter assumes you know what an opportunity is, how stages map to probability and forecast category, and how a sales process and record type control which stages a rep sees. Here you will see how those fields turn into forecast numbers, and why a forecast sometimes does not match what you expect.
What a forecast is built from
A forecast in Sales Cloud is a rollup of opportunity data. Salesforce does not store a separate forecast number that reps type in. It reads fields on each opportunity, groups them, and adds them up for each user and each manager above that user.
Four opportunity fields drive almost everything:
| Field | What it decides |
|---|---|
| Close Date | Which forecast period the deal falls into |
| Amount (or quantity) | The value that is added up |
| Forecast Category | Which column of the forecast the amount lands in |
| Owner | Whose forecast the deal belongs to, and who it rolls up to |
If any of these is wrong, the forecast is wrong. Most forecast problems come from bad data in these four fields, not from the forecast feature itself.
Forecast categories as the grouping
Each stage in a sales process is mapped to a forecast category. When a rep moves an opportunity to a new stage, the Forecast Category field is updated to match. The standard categories are:
- Pipeline: open deals that are early or uncertain.
- Best Case: open deals that could close with some luck.
- Commit: open deals the rep is confident about.
- Closed: deals that are Closed Won.
- Omitted: deals that are left out of the forecast, such as Closed Lost.
Forecast views then show a total for each category. A common reading is that Closed plus Commit is the number the rep is promising, and Best Case and Pipeline show upside.
The category changes automatically with the stage, but you can override it. Reps can edit Forecast Category on the record, or change it from within the forecast page, depending on how your org is set up. An override is useful when a rep knows a deal is safer or riskier than its stage suggests. It also means that two deals in the same stage can sit in different categories.
Forecast types
Salesforce offers more than one way to build the rollup. This choice is made by an administrator in Forecast Settings.
- Opportunity Revenue forecasts add up the Amount field.
- Opportunity Quantity forecasts add up the quantity of products on the deal.
- Product Family forecasts split revenue or quantity by product family, which requires opportunity products.
- Opportunity Splits forecasts divide credit among team members, which requires opportunity teams and splits.
The type you choose decides which data you must keep clean. A revenue forecast depends on Amount. A product family forecast depends on products being added to every deal.
Collaborative Forecasts is the current forecasting feature. Older Customizable Forecasting is retired, so this chapter describes Collaborative Forecasts only.
Forecast periods and the Close Date
Forecasts are shown by period, such as a month or a quarter. An opportunity appears in the period that contains its Close Date. This leads to two common surprises:
- A deal with a Close Date in the past that is still open lands in an old period. It no longer shows in the current forecast, even though the rep is still working it.
- A rep who pushes a Close Date from this quarter to next quarter moves the amount out of the current forecast at once.
Because of this, many teams add a validation rule or a report that flags open opportunities with a Close Date in the past. The rule below uses the same formula style as stage-based validation rules.
AND(
NOT(IsClosed),
CloseDate < TODAY()
)Use this rule with care. It blocks any save on an overdue opportunity, including saves that only change an unrelated field. Many admins instead run a report and review it weekly.
Rollup through the hierarchy
Forecasts roll up through a forecast hierarchy. By default this follows the role hierarchy. A rep's opportunities add up to the rep's forecast. A manager's forecast adds up the reps below, plus the manager's own deals.
The rollup supports several views of the same data:
- Own: the user's own opportunities.
- Team: the user's opportunities plus everyone below, as the manager sees it.
- Adjustments: a manager can change a team member's rolled-up number without editing any opportunity.
Adjustments matter for planning. A manager's adjustment changes only the forecast figure. The underlying opportunities keep their original values. If you later report on opportunities, the adjustment will not appear there.
The diagram shows how data moves from a single opportunity to a manager's number.
Querying the same data a forecast uses
You can check a forecast by running the same grouping yourself. This SOQL query totals open opportunity Amount by forecast category for the current fiscal quarter.
SELECT ForecastCategoryName, COUNT(Id) deals, SUM(Amount) total
FROM Opportunity
WHERE IsClosed = false
AND CloseDate = THIS_FISCAL_QUARTER
GROUP BY ForecastCategoryNameCompare the result with what the forecast page shows. Differences usually come from one of these causes:
- The forecast page uses the forecast hierarchy, and the query covers all users.
- A manager adjustment is applied on the forecast page.
- The forecast type is quantity or product family, not revenue.
- Closed Won deals are excluded here by the
IsClosed = falsefilter but included in the Closed category on the forecast page.
Adding closed deals to the filter gives the full picture, since Closed Won amounts count toward the Closed category.
Probability and forecasts
Stage probability does not decide where a deal appears in the forecast. The forecast category does. Probability is used in other places, such as weighted pipeline reports where Expected Amount is Amount multiplied by Probability.
This distinction catches many teams. If a stage has a probability of 90% but the category is Pipeline, the deal appears in the Pipeline column of the forecast, not in Commit. When you design a sales process, set both values on purpose. Chapter content on stages covers how the two are set. The point to keep here is that the forecast reads the category.
Common errors
- Opportunities missing from the forecast. Check that the owner is in the forecast hierarchy, that Close Date is in the period, and that the user is enabled for forecasts.
- Amount is blank. A blank Amount adds nothing. Use a validation rule at a stage such as Proposal to require it.
- Wrong category after a stage change. A rep may have overridden the category. The override stays until someone changes it again or the stage moves, depending on your settings.
- Totals differ between a report and a forecast. See the list in the query section above.
- Products change Amount. When an opportunity has products, Amount is the sum of the product lines and can no longer be edited directly. Check the product lines if Amount looks wrong.
Practical guidance
- Keep Close Date honest. Review overdue open deals every week.
- Decide whether reps may override Forecast Category, and document the rule.
- Use Amount validation at the stage where a number is first reliable.
- Pick one forecast type and make the matching data mandatory.
- Teach managers that adjustments live only in the forecast, not on the records.
Exercise
An opportunity is in a stage with a 90% probability, but it appears in the Pipeline column of the forecast. Why, and what would you check first?
Show answer
The forecast groups deals by Forecast Category, not by probability. The stage is probably mapped to the Pipeline category, or a rep overrode the category on the record. Check the stage's forecast category in the sales process and the Forecast Category value on the opportunity.
Exercise
A rep moves the Close Date of a $50,000 open deal from this quarter to next quarter. What happens to the current quarter's forecast, and why?
Show answer
The $50,000 leaves the current quarter's forecast and appears in next quarter's. A forecast places each opportunity in the period that contains its Close Date.
Exercise
A manager adjusts a team member's forecast upward by $20,000. Will an opportunity report show that $20,000? Explain.
Show answer
No. Adjustments change only the forecast figure. The opportunity records keep their original Amounts, so reports on opportunities do not include the adjustment.