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.
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.
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)
After completing the Report Type, proceed to open the same Report in the Lightning Report Builder.
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.
Under Summary Formulas (0) tab, click on Create Formula.
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.
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).
000397091

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.