<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Calculating NRR in &amp;#128172 RevOps Discussions</title>
    <link>https://community.hubspot.com/t5/128172-RevOps-Discussions/Calculating-NRR/m-p/847896#M2004</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/128294"&gt;@timo1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There's a default Company Property called Number of Associated Deals (num_associated_deals) that you can add to your calculation.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have fun&lt;/P&gt;
&lt;P&gt;Mike&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="font-size: 0.8rem;"&gt;Here to learn more about HubSpot and share my HubSpot Knowledge. I'm the founder of &lt;A href="https://www.webalite.com?utm_campaign=community-forum&amp;amp;utm_source=community&amp;amp;utm_content=signature" target="_blank"&gt;Webalite&lt;/A&gt; a HubSpot Partner Agency based in Wellington, New Zealand and the founder of &lt;STRONG&gt;Portal-iQ&lt;/STRONG&gt; the world's first automated &lt;A href="https://portal-iq.com?utm_campaign=community-forum&amp;amp;utm_source=community-forum&amp;amp;utm_content=signature" target="_blank"&gt;HubSpot Portal Audit&lt;/A&gt; that helps you work smarter with HubSpot.&lt;/P&gt;</description>
    <pubDate>Tue, 12 Sep 2023 00:22:41 GMT</pubDate>
    <dc:creator>Mike_Eastwood</dc:creator>
    <dc:date>2023-09-12T00:22:41Z</dc:date>
    <item>
      <title>Calculating NRR</title>
      <link>https://community.hubspot.com/t5/128172-RevOps-Discussions/Calculating-NRR/m-p/847886#M2003</link>
      <description>&lt;P&gt;Hey team,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I figured out how to dynamically track Net Revenue Retention / team members as a percentage via custom code.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The only problem is that to get it accurate at a company level, I need to divide the sum of all NRRs by the total amount of deals in our company CSM's portfolios.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Is there a way to create a dynamic property that adds up the total number of deals and can I store this as a value under each deal? Or store somewhere in hubspot that can be pulled by custom code?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 23:53:43 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/128172-RevOps-Discussions/Calculating-NRR/m-p/847886#M2003</guid>
      <dc:creator>timo1</dc:creator>
      <dc:date>2023-09-11T23:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating NRR</title>
      <link>https://community.hubspot.com/t5/128172-RevOps-Discussions/Calculating-NRR/m-p/847896#M2004</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/128294"&gt;@timo1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There's a default Company Property called Number of Associated Deals (num_associated_deals) that you can add to your calculation.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have fun&lt;/P&gt;
&lt;P&gt;Mike&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="font-size: 0.8rem;"&gt;Here to learn more about HubSpot and share my HubSpot Knowledge. I'm the founder of &lt;A href="https://www.webalite.com?utm_campaign=community-forum&amp;amp;utm_source=community&amp;amp;utm_content=signature" target="_blank"&gt;Webalite&lt;/A&gt; a HubSpot Partner Agency based in Wellington, New Zealand and the founder of &lt;STRONG&gt;Portal-iQ&lt;/STRONG&gt; the world's first automated &lt;A href="https://portal-iq.com?utm_campaign=community-forum&amp;amp;utm_source=community-forum&amp;amp;utm_content=signature" target="_blank"&gt;HubSpot Portal Audit&lt;/A&gt; that helps you work smarter with HubSpot.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 00:22:41 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/128172-RevOps-Discussions/Calculating-NRR/m-p/847896#M2004</guid>
      <dc:creator>Mike_Eastwood</dc:creator>
      <dc:date>2023-09-12T00:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating NRR</title>
      <link>https://community.hubspot.com/t5/128172-RevOps-Discussions/Calculating-NRR/m-p/872216#M2055</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/128294"&gt;@timo1&lt;/a&gt;&amp;nbsp;any chance you could give a quick recap of how you calculated NRR / team member with custom code?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 19:51:04 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/128172-RevOps-Discussions/Calculating-NRR/m-p/872216#M2055</guid>
      <dc:creator>HPeake</dc:creator>
      <dc:date>2023-10-30T19:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating NRR</title>
      <link>https://community.hubspot.com/t5/128172-RevOps-Discussions/Calculating-NRR/m-p/872290#M2056</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/655902"&gt;@HPeake&lt;/a&gt;&amp;nbsp;It took some time but we got it working perfectly&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;It starts with two inputs: the 'amount' of the deal and the 'individual' who is responsible for renewing it (normally the deal owner but it depends on your companies layout).&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;We created a data set of individuals, each with a name, ID, and a 'Target' value representing their retention goal for the year.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;When a deal is enrolled, the code checks through the list of individuals. It matches the deal owner (we used company owner which made it way more difficult) to the 'individual' in the dataset. When it finds a match, it takes that individual's target value and stops searching.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;If a match is found, it calculates how much the deal contributes to that individual's goal by dividing the deal's amount by the target value. This calculation is stored in the 'result' variable.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Once the code has calculated the result, I copy the value into a propety called NRR Decimal on the deal. e.g if the deal was worth 100 and my target was 10,000, this deal would count for 0.01 of my target or 1%.&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After the codes run I craete a report adding up the sum of the NRR propertys and break it down by indivudal. It creates a report like the one below. We've sinced moved to using API's and Custom Objects but I set this up for Indivudals, states, countries and teams and it works a treat!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If you need a hand with setting something similiar up for your business I'm happy to help.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-10-31 at 9.54.34 AM.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/102251i529E1A9B5797C16A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2023-10-31 at 9.54.34 AM.png" alt="Screenshot 2023-10-31 at 9.54.34 AM.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Heres our code:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;exports.main = async (event, callback) =&amp;gt; {
  const dealAmount = event.inputFields['amount'];
  const dealOwner_ID = event.inputFields['deal_owner_ID'];

  const teamData = [
    { Name: "Person A", ID: "1", Target: "10000" },
    { Name: "Person B", ID: "2", Target: "8000" },
    { Name: "Person C", ID: "3", Target: "7000" },
    { Name: "Person D", ID: "4", Target: "9000" }
  ];

  let individualTarget = 0;

  let targetID = dealOwner_ID;

  for (const row of teamData) {
    if (row.ID === targetID) {
      console.log(person.Name + " Matched");
      individualTarget = parseFloat(person.Target);
      break;
    }
  }

  if (individualTarget !== 0) {
    console.log(individualTarget);
    const nrr = dealAmount / individualTarget;
    console.log(contribution);
    callback({
      outputFields: {
        nrrDecimal: nrr
      }
    });
    return contribution;
  } else {
    console.log("No person with a target found");
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 23:01:31 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/128172-RevOps-Discussions/Calculating-NRR/m-p/872290#M2056</guid>
      <dc:creator>timo1</dc:creator>
      <dc:date>2023-10-30T23:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating NRR</title>
      <link>https://community.hubspot.com/t5/128172-RevOps-Discussions/Calculating-NRR/m-p/879737#M2086</link>
      <description>&lt;P&gt;Nice work&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/128294"&gt;@timo1&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 06:20:15 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/128172-RevOps-Discussions/Calculating-NRR/m-p/879737#M2086</guid>
      <dc:creator>Mike_Eastwood</dc:creator>
      <dc:date>2023-11-15T06:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating NRR</title>
      <link>https://community.hubspot.com/t5/128172-RevOps-Discussions/Calculating-NRR/m-p/1033024#M2635</link>
      <description>&lt;P data-unlink="true"&gt;I’m currently using HubSpot to calculate NRR and came across a method to track the total number of deals dynamically. Does anyone have experience using custom properties for this? I’m considering using it for my tool, Calculadora Alicia&amp;nbsp;, but I’m curious if there are any better alternatives or tips for optimizing this process.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2024 20:45:59 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/128172-RevOps-Discussions/Calculating-NRR/m-p/1033024#M2635</guid>
      <dc:creator>HHana</dc:creator>
      <dc:date>2024-08-27T20:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating NRR</title>
      <link>https://community.hubspot.com/t5/128172-RevOps-Discussions/Calculating-NRR/m-p/1034116#M2647</link>
      <description>&lt;P&gt;&lt;A href="https://aliciacalculadora.es/guia/" target="_blank" rel="noopener"&gt;Alicia calculadora&lt;/A&gt; helped me a lot.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 18:20:09 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/128172-RevOps-Discussions/Calculating-NRR/m-p/1034116#M2647</guid>
      <dc:creator>HHana</dc:creator>
      <dc:date>2024-08-29T18:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating NRR</title>
      <link>https://community.hubspot.com/t5/128172-RevOps-Discussions/Calculating-NRR/m-p/1139041#M3156</link>
      <description>&lt;P&gt;I found that pulling expansion, contraction, and churn data from our CRM reports and separating them by customer really helped give a clean view. Then I just summed those up and ran the formula to get &lt;A href="https://waveup.com/blog/net-revenue-retention/" target="_blank" rel="noopener"&gt;net revenue retention&lt;/A&gt;. I also like to compare it month over month to spot any early trends we might miss if we looked at only quarterly numbers. Keeps everything more transparent for our team.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2025 14:01:16 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/128172-RevOps-Discussions/Calculating-NRR/m-p/1139041#M3156</guid>
      <dc:creator>Polkadveri</dc:creator>
      <dc:date>2025-04-22T14:01:16Z</dc:date>
    </item>
  </channel>
</rss>

