In Salesforce, you may need to run a report that compares Opportunities won this month to Leads converted this month, expressed as a percentage. For example, if 2 Opportunities closed this month and 4 Leads converted this month, the report should calculate (2/4)*100, which is 50%.
This resolution explains how to build a Salesforce report with a row-level formula and a summary formula to calculate the percentage of Opportunities won this month compared to Leads converted this month.
The best way is to first create a report with the "Leads with converted lead information" report type.
To organize your report data by individual opportunities, you need to group rows by the Opportunity Name field. In the report builder, locate the Fields panel on the left side of the screen. Find the "Opportunity Name" field and drag it into the "Group Rows" section. This creates separate groupings for each opportunity, making it easier to track conversions and wins at the opportunity level.
Add/remove columns as needed.
Now add a custom formula that checks whether each lead was converted in the current month. This formula returns a value of 1 for leads converted this month and 0 for all others, allowing you to count only current-month conversions. To access the formula builder, click the down arrow next to "Columns" in the report builder toolbar, then select "Add Row-Level Formula" from the dropdown menu.
Give it a name and make sure it returns a number without any decimal, then enter the formula below. Tip: select the Converted Date from the left-hand-side panel to get the right spelling.
IF(AND(MONTH(CONVERTED_DATE)=MONTH(TODAY()), YEAR(CONVERTED_DATE)=YEAR(TODAY())),1,0)
This formula checks whether the lead's Converted Date falls in the current month and year, and returns 1 if true, or 0 if false.
With the row-level formula counting current month conversions, you now need a summary formula to calculate the final percentage. This formula divides the number of won opportunities by the number of converted leads this month, giving you your conversion rate. To create this summary calculation, click the down arrow next to "Columns" again and select "Add Summary Formula" from the dropdown menu.
Enter the following formula, returning a percentage. Tip: select the necessary fields from the left-hand-side panel to get the right spelling and SUM in the dropdown. The row-level formula created earlier shows as CDF1:SUM in the formula box.
IF(CDF1:SUM=0,0,WON:SUM/CDF1:SUM)
This divides the sum of won Opportunities by the sum of leads converted this month (CDF1), guarding against a divide-by-zero error when no leads converted.
Note: If you are filtering the report on "Won equals TRUE", you can use this formula instead:
IF(CDF1:SUM=0,0,RowCount/CDF1:SUM)
Since you only need to see the overall percentage (not percentages for each individual opportunity row), configure the summary formula to display at the grand total level only. This keeps your report clean and focused on the key metric. Click on the "Display" tab in the summary formula editor, then change the "Show" setting to "Grand Total Only" to hide the formula column from individual rows.
Save and run the report to see the calculated percentage.
000391871

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.