Loading

How to Create a Salesforce Report Comparing Opportunities Won vs Leads Converted This Month as a Percentage

Udgivelsesdato: Aug 26, 2026
Beskrivelse

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%.

Løsning

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.

Step 1: Create the Report

The best way is to first create a report with the "Leads with converted lead information" report type.

Report type selection (

Step 2: Group Rows by Opportunity Name

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.

Dragging Opportunity Name into Group Rows

Add/remove columns as needed.

Step 3: Add a Row-Level Formula for Conversions This Month

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.

Columns dropdown → Add Row-Level Formula

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.

Row-Level Formula editor (

Step 4: Add a Summary Formula for the Percentage

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.

Columns dropdown → Add Summary Formula

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)

Summary Formula editor (percentage formula)

Step 5: Show the Formula at the Grand Total Level Only

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.

Summary Formula Display tab set to

Step 6: Save and Run

Save and run the report to see the calculated percentage.

Vidensartikelnummer

000391871

 
Indlæser
Salesforce Help | Article