Win rate in Salesforce is usually won opportunities divided by closed opportunities in a period, filtered with IsClosed and IsWon. That closed-period rate ignores deals still open, so a cohort rate based on created date, a stage-entry rate, and an amount-weighted rate can each give a different figure on the same records. Name the denominator, unit and period, and show the counts next to the percentage.
Same records, four defensible answers
Two people can both be correct about win rate and be 20 points apart. It looks like the simplest metric in a CRM, so the argument usually starts before anyone has checked the definition. Lay out the versions on one data set first and the gap explains itself.
Take a synthetic quarter for a fictional sales team. 100 opportunities were created in the quarter. By the end of it 20 were won, 30 lost and 50 still open. Another 40 older opportunities also closed in that quarter, of which 22 were won and 18 lost. The closed amounts are in the table.
Each row answers a different question. The closed-period rate describes what happened to everything that finished in the quarter, whenever it began. The cohort rate is immature until the cohort has finished, so it reads low for recent quarters and rises over time. One large deal going either way moves the amount rate. The stage rate describes how well qualified deals convert, and it flatters a team that only moves strong deals to that stage.
| Definition (synthetic data) | Calculation | Result |
|---|---|---|
| Closed in period, by count | 42 won of 90 closed | 47% |
| Created in period, resolved only | 20 won of 50 resolved | 40% |
| Created in period, all | 20 won of 100 created | 20% |
| Closed in period, by amount | 3.1M won of 5.0M closed | 62% |
| Entered Proposal stage in period | 18 won of 30 entered and resolved | 60% |
The SOQL for each version
SOQL has no conditional aggregates, so group on the flag and do the division afterwards. IsClosed and IsWon are boolean fields on Opportunity that follow from the stage. I’d use them over a list of stage names, since an admin may extend that list later.
A grouped SUM(Amount) comes back in the org’s default currency, and Salesforce says you cannot wrap an aggregate in convertCurrency(). Reps selling in several currencies, with a percentage by amount riding on it, means querying the rows and doing the arithmetic in your application with a stated rate rule.
Fiscal dates need one more check. The FISCAL_QUARTER() date function cannot be used when custom fiscal years are enabled. The THIS_FISCAL_QUARTER literal reads the calendar defined on the Fiscal Year page in Setup. Where your board calendar differs from what’s configured there, use explicit date ranges and note them.
-- Closed in the period: count and default-currency amount by outcome
SELECT IsWon, COUNT(Id) deals, SUM(Amount) amount
FROM Opportunity
WHERE IsClosed = true
AND CloseDate >= 2026-07-01 AND CloseDate <= 2026-09-30
GROUP BY IsWon
-- Created in the period: outcome so far, with open deals visible
SELECT IsClosed, IsWon, COUNT(Id) deals
FROM Opportunity
WHERE CreatedDate >= 2026-07-01T00:00:00Z
AND CreatedDate < 2026-10-01T00:00:00Z
GROUP BY IsClosed, IsWon
-- Entered a stage: deals with a history row for that stage
SELECT OpportunityId, CreatedDate, StageName
FROM OpportunityHistory
WHERE StageName = 'Proposal'
AND CreatedDate >= 2026-07-01T00:00:00Z
AND CreatedDate < 2026-10-01T00:00:00ZPicking one for the decision at hand
Match the definition to the decision. Two questions sort the choice: are you asking about money or about process, and has the population finished? A forecast weighting wants an amount-based rate from a mature cohort. A rep’s coaching review wants a count rate on deals that reached a qualified stage, because early disqualification is often good behavior that a raw cohort rate would punish.
My own default for a recurring dashboard is the closed-period count rate, with the mature cohort rate beside it. The first is stable to compute and easy to reconcile against a report. The second keeps it straight, since a closed-period rate can rise just because a team stopped closing out its losing deals.
Records that move the rate without telling you
Definitions fail on exceptions, so write the rule for each of these before the first comparison. Most can be counted in an afternoon, and the counts show how much each one matters.
- Closed lost as housekeepingA pipeline clean-up that closes 60 stale deals in the last week of a quarter drags closed-period rate down without anything changing in the market. Look for spikes in closed-lost volume, and consider a separate loss reason for clean-up.
- Reopened dealsOpportunityHistory shows a closed stage followed by an open one. A deal lost in June and won in September counts in both periods unless you decide otherwise. Query it once and see how many you have.
- Renewals and expansionsRenewals often win at a much higher rate than new business, so a shift in mix moves the blended number. Split by your opportunity type before comparing teams.
- Zero and null amountsThey count toward the count rate and vanish from the amount rate. Many unpriced early deals will open a wide gap between the two for that reason alone.
- Duplicates and splitsOne real deal entered twice gives one win and one loss. A parent and child opportunity structure can do something similar. Agree whether one row equals one buying decision.
Comparing segments without fooling anyone
A table sorted by win rate invites people to rank whatever is at the top. Segment A won 2 of 3 and segment B won 60 of 100, so A appears ahead at 67% against 60%. Those percentages conceal how little A’s figure pins down. A 95% Wilson score interval, a standard method that behaves well at small samples, runs from roughly 21% to 94% for A and from roughly 50% to 69% for B. The ranges overlap almost entirely, so the ordering carries no information.
Leave the statistics off the slide. Print the counts, set a minimum sample below which a segment is shown but not ranked, and use the interval yourself when someone wants to act on a difference.
Mix can also reverse a result. A team can beat a peer on small deals and on large deals, and still have a lower overall rate because it carries more large deals, which close less often. Before reporting a gap between teams, split once by deal size or product. Should the gap flip or disappear, you’ve found the story.
Reconciling a rate someone else produced
Say a conversational answer or a new dashboard disagrees with the report the team uses. Don’t argue at the percentage level. Compare numerator and denominator separately, then list opportunity IDs for whichever one differs. Pick four records that test the rule: one won, one lost, one still open, one reopened. Have the report owner say how each should count, and check that the new answer treats them the same way.
Then change one condition at a time. Move the quarter, switch from count to amount, restrict to one region. An answer that drifts to another definition on follow-up is the failure I’d worry about most, because the reader won’t notice it.
Where we stop and ask
Win rate is a measure we ask about, because its meanings give different numbers. You get one question with the options spelled out. Once a single meaning is approved, the question goes away. The answer’s trust label says where the definition came from, Approved or Interpreted, and the SOQL and filters are there to check against your report.
The sensible first step needs no tool. Get your report owner to pick one definition, write down its denominator, and give it an owner. Then see whether we, or anyone else you’re testing, stick to it through a follow-up question.
Bring three business questions
Explore your sources, definitions, and review criteria with our team. Please keep credentials and sensitive records out of the inquiry.