Loading

Calculate Closed Won Opportunity Win Rate Against Cases Opened per Month in Salesforce Reports

Data pubblicazione: Sep 21, 2026
Descrizione

This article shows how to build a Custom Report Type using Opportunities as the primary object and Cases as a related object, then use a Summary Formula to calculate the percentage of Closed Won opportunities against total cases opened in a given month.

Risoluzione

This article explains how to build a Custom Report Type using Opportunities as the primary object and Cases as a related object, then use a Summary Formula to calculate the percentage of Closed Won opportunities against total cases opened in a given month.

Step 1: Create the Custom Report Type

We named it Cases with or without Opportunity. We chose the following object relationships:

Opportunities (A) as primary object > with related records from Cases (B)

Screenshot of custom report type object relationships

Step 2: Open the Report in the Lightning Report Builder

After completing the Report Type, proceed to open the same Report in the Lightning Report Builder.

Screenshot of Reports with Groups & Columns

a. Under Columns section add columns that we want to see in our Report like Opportunity Name, Case Number, and Stage
b. Add Date/Time Opened field under GROUP ROWS as we want to see count of cases created at date.

Step 3: Click on Show Fields Arrow

Screenshot of Fields sidebar

Step 4: Create a Summary Formula

Under Summary Formulas (0) tab, click on Create Formula.

Screenshot of creating a formula

Step 5: Create the Formula

Screenshot of Formula editor

a. Assign a Column Name and provide Description
b. Formula Output Type should be Percent
c. Set Decimal Points to 2
d. Under Display section, click on Selected Groups with Row Group as Date/Time Opened
e. Sample Formula:

Opportunity.IsWon:SUM / PARENTGROUPVAL(RowCount, Case.CreatedDate)

This formula sums the number of won Opportunities and divides that by the row count of Cases within the same Date/Time Opened group, producing the percentage of Closed Won opportunities relative to Cases opened in that period.

f. Click on Validate to make sure there are no syntax errors, then click Apply.

Step 6: Run the Report to Validate the Output

Screenshot of the report

Applied the provided formula in one of the Reports where there are 2 cases, but only 1 opportunity that's closed won. This results in the expected outcome of 50% (1/2=0.5).

Numero articolo Knowledge

000397091

 
Caricamento
Salesforce Help | Article