---
title: Sales Metrics - Number of Touches Before Deal Closes | Rollup Helper Use Case Library
description: With Rollup Helper, capture the number of activities on an opportunity in Salesforce, then use workflow rules to see total activities before closing a deal
---

[GET DEMO](https://www.passagetechnology.com/any-product-one-on-one) **+1 (224) 655-6779

[![Trusted Salesforce service partner Passage Technology](https://www.passagetechnology.com/hubfs/2021/Nav-header-logo_PT.png) ](https://www.passagetechnology.com)

# Sales Metrics - Number of Touches Before Deal Closes

[![Free Salesforce business guides to help admins/developers, project managers, sales managers, and decision makers. Download the free PDF series now: Reinventing Your Business, Reimagining Your Salesforce®.](https://www.passagetechnology.com/hubfs/2021/Essential-Salesforce-Guide_Helper-Suite.png) ](https://www.passagetechnology.com/en/essential-guide-for-salesforce-admins-developers)

This is a two-part rollup. The first part captures the number of activities on an opportunity. The second part makes use of Flow to capture the number of activities completed before a deal was closed. (Note: if an opportunity is re-opened and closed, the number of activities before closed date field will change to match the number of activities field.)

Step 1. Create a field to hold the number activities completed and a field to hold the number of activities completed before deal closed.

Step 2. Create a rollup to the opportunity object; select number of activities field as target field.

Step 3. Select Task as child object and Deleted as source field. Select Count as Rollup Type.

Step 4. Create a record-triggered Flow on the opportunity object.

Step 5. Configure the flow to trigger when a record is created or updated.

Step 6. Change the entry conditions to formula evaluates to true, the formula should be set to

(IsClosed = False) &&

(

ISCHANGED(Number_of_Activities__c) ||

ISCHANGED(IsClosed)

)

Step 7. Optimize the flow for Actions and Related Records. 

Step 8. Add an Update Records element below the start and set a label. Under “How to find records to update and set their values”, select “Use the opportunity record that triggered the flow”.

Step 9. Under Set Field Values for the Opportunity Record, select the closed number of activities before the close date field for the field, and select the triggering opportunity and rollup target field for the value.

Step 10. Make sure to activate your flow rule! After this is done your rollup should be up and running!

 

 *Updated, 4/7/2026* 

 

Tags: [COUNT](https://www.passagetechnology.com/rollup-helper-use-cases/topic/count), [Opportunity](https://www.passagetechnology.com/rollup-helper-use-cases/topic/opportunity), [Task](https://www.passagetechnology.com/rollup-helper-use-cases/topic/task), [Flow](https://www.passagetechnology.com/rollup-helper-use-cases/topic/flow)

| [** Event Metrics - Count of In-Person Meetings In Last 12 Months ](https://www.passagetechnology.com/rollup-helper-use-cases/event-metrics-count-of-in-person-meetings) | [Rollup Helper Use Case Library](https://www.passagetechnology.com/rollup-helper-use-cases) | [ Generating a Unique Count of Records ** ](https://www.passagetechnology.com/rollup-helper-use-cases/unique-count) |
| --- | --- | --- |

[ Optimize Sales Rep Reporting and Leaderboards in Salesforce ](https://www.passagetechnology.com/rollup-helper-use-cases/sales-rep-reporting)

[ Rolling Up Marketing Cloud Account Engagement (Pardot) Activity ](https://www.passagetechnology.com/rollup-helper-use-cases/rolling-up-marketing-cloud-account-engagement-pardot-activity)

[ Streamline Sales Pipeline ](https://www.passagetechnology.com/rollup-helper-use-cases/streamline-sales-pipeline)

[ Creating Grandchild Rollups ](https://www.passagetechnology.com/rollup-helper-use-cases/creating-grandchild-rollups)

[ Calculate the Number of Cases on a Salesforce Contact Record ](https://www.passagetechnology.com/rollup-helper-use-cases/number-of-cases-on-a-contact)

[ Creating Account Hierarchy Rollups without Coding ](https://www.passagetechnology.com/rollup-helper-use-cases/account-hierarchy-rollup-without-code)

[ Easily Create a Custom Last Activity (Task/Event) Date ](https://www.passagetechnology.com/rollup-helper-use-cases/last-activity-task-event-date)

[ Roll-ups Using Formulas Rather than Static Criteria ](https://www.passagetechnology.com/rollup-helper-use-cases/roll-ups-using-formulas-rather-than-static-criteria)

[ Identify The Primary Contact On An Account ](https://www.passagetechnology.com/rollup-helper-use-cases/identify-the-primary-contact-on-an-account)

[ Opportunity Line Item Schedule Rollups ](https://www.passagetechnology.com/rollup-helper-use-cases/opportunity-line-item-schedule-rollups)

© 2026 Passage Technology LLC All Rights Reserved. [Privacy Policy](https://www.passagetechnology.com/privacy-policy) | [Purchasing & Legal](https://www.passagetechnology.com/purchasing-and-legal) | [Terms of Service](https://www.passagetechnology.com/terms-of-service) | [App Security](https://passagetech.my.site.com/KnowledgeBase/s/article/Security-and-Privacy-Policy-1578080055496)

- [** ](https://www.facebook.com/passagetech)
- <https://x.com/passagetech>
- [** ](https://www.linkedin.com/company/passage-technology)
- [** ](https://www.youtube.com/channel/UCK2tzaCWVC7PmFCXrLirnZw)

```json
{
  "@context" : "https://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Jacob Blair",
    "url" : "https://www.passagetechnology.com/rollup-helper-use-cases/author/jacob-blair"
  },
  "dateModified" : "2026-04-07T18:28:42.076Z",
  "datePublished" : "2014-09-22T15:24:31.000Z",
  "headline" : "Sales Metrics - Number of Touches Before Deal Closes",
  "mainEntityOfPage" : {
    "@id" : "https://www.passagetechnology.com/rollup-helper-use-cases/number-of-touches-before-deal-closes",
    "@type" : "WebPage"
  },
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "url" : "https://www.passagetechnology.com/hubfs/Logo%20PT_colors_wide_on-white.png"
    },
    "name" : "Passage Technology LLC"
  }
}
```