<?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 custom calculation formula for line items in Tips, Tricks &amp; Best Practices</title>
    <link>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/custom-calculation-formula-for-line-items/m-p/1248207#M14652</link>
    <description>&lt;P&gt;Thanks to the new update, I created a custom calculation property for line items to calculate the unit price after applying a percentage discount.&lt;/P&gt;&lt;P&gt;The formula used is:&lt;BR /&gt;(unit price - (unit price * (unit discount / 100)))&lt;/P&gt;&lt;P&gt;When testing the property, the calculation works correctly. However, when I add this property in the line item section during quote creation, the calculation does not work as expected: it only works if the discount is entered as an absolute number rather than a percentage.&lt;/P&gt;&lt;P&gt;This behavior seems inconsistent, since the property test returns the correct result.&lt;/P&gt;</description>
    <pubDate>Wed, 04 Feb 2026 16:13:10 GMT</pubDate>
    <dc:creator>Ribe90</dc:creator>
    <dc:date>2026-02-04T16:13:10Z</dc:date>
    <item>
      <title>custom calculation formula for line items</title>
      <link>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/custom-calculation-formula-for-line-items/m-p/1248207#M14652</link>
      <description>&lt;P&gt;Thanks to the new update, I created a custom calculation property for line items to calculate the unit price after applying a percentage discount.&lt;/P&gt;&lt;P&gt;The formula used is:&lt;BR /&gt;(unit price - (unit price * (unit discount / 100)))&lt;/P&gt;&lt;P&gt;When testing the property, the calculation works correctly. However, when I add this property in the line item section during quote creation, the calculation does not work as expected: it only works if the discount is entered as an absolute number rather than a percentage.&lt;/P&gt;&lt;P&gt;This behavior seems inconsistent, since the property test returns the correct result.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Feb 2026 16:13:10 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/custom-calculation-formula-for-line-items/m-p/1248207#M14652</guid>
      <dc:creator>Ribe90</dc:creator>
      <dc:date>2026-02-04T16:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: custom calculation formula for line items</title>
      <link>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/custom-calculation-formula-for-line-items/m-p/1248299#M14655</link>
      <description>&lt;P&gt;Fair warning, I just used Hub Helper Harry, a HubSpot-related GPT, to find this answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It suggested replacing "unit discount" with "discount_percentage", since apparently &lt;STRONG&gt;u&lt;/STRONG&gt;&lt;STRONG&gt;nit discount&lt;/STRONG&gt;&lt;SPAN&gt; = a &lt;/SPAN&gt;&lt;STRONG&gt;currency amount.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It recommends changing your formula to:&amp;nbsp;&lt;STRONG&gt;unit_price * (1 - (discount_percentage / 100))&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if you wanted to give someone a 10% discount, in the&amp;nbsp; discount_percentage property:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;You enter 10.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;HubSpot &lt;STRONG&gt;&lt;EM&gt;displays&lt;/EM&gt; &lt;/STRONG&gt;it as &lt;STRONG&gt;10%&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Under the hood, the value is still just 10, though, which is why you still need to divide by 100.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I hope this helps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Robyn&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Feb 2026 19:49:59 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/custom-calculation-formula-for-line-items/m-p/1248299#M14655</guid>
      <dc:creator>RNoll</dc:creator>
      <dc:date>2026-02-04T19:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: custom calculation formula for line items</title>
      <link>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/custom-calculation-formula-for-line-items/m-p/1248460#M14661</link>
      <description>&lt;P&gt;Thanks so much Robyn for your help&lt;/P&gt;</description>
      <pubDate>Thu, 05 Feb 2026 09:55:28 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/custom-calculation-formula-for-line-items/m-p/1248460#M14661</guid>
      <dc:creator>Ribe90</dc:creator>
      <dc:date>2026-02-05T09:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: custom calculation formula for line items</title>
      <link>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/custom-calculation-formula-for-line-items/m-p/1248545#M14665</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/607743"&gt;@RNoll&lt;/a&gt;&amp;nbsp;Now everything works, thank you very much. However, I'm having a new problem. When I try to insert it into the estimate template, I can't find it even though I used it in the estimate construction table. Any suggestions?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Feb 2026 15:15:06 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/custom-calculation-formula-for-line-items/m-p/1248545#M14665</guid>
      <dc:creator>Ribe90</dc:creator>
      <dc:date>2026-02-05T15:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: custom calculation formula for line items</title>
      <link>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/custom-calculation-formula-for-line-items/m-p/1248562#M14668</link>
      <description>&lt;P&gt;Just FYI, this was generated by Hub Helper Harry again. Our company does not use the Sales Hub or Quotes.&lt;BR /&gt;&lt;BR /&gt;Here's its response:&lt;/P&gt;&lt;P&gt;Yes — this is expected behavior in HubSpot, and it’s &lt;STRONG&gt;not related to the formula&lt;/STRONG&gt; anymore.&lt;/P&gt;&lt;H2&gt;What’s happening&lt;/H2&gt;&lt;P&gt;There are &lt;STRONG&gt;two different contexts&lt;/STRONG&gt; in HubSpot, and they behave differently:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Quote editor (estimate construction table)&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Displays &lt;EM&gt;all&lt;/EM&gt; line item properties&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Includes custom and calculated line item properties&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;This is why the calculation works and is visible while building the estimate&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Estimate / quote template&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Only displays fields that are explicitly included in the &lt;STRONG&gt;line item table configuration&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;The &lt;STRONG&gt;default line item table&lt;/STRONG&gt; does &lt;STRONG&gt;not&lt;/STRONG&gt; automatically expose custom line item properties (calculated or not)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;So even though the property:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Exists&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Calculates correctly&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Is already used on the estimate&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;…it will &lt;STRONG&gt;not appear in the template&lt;/STRONG&gt; unless the line item table itself is customized.&lt;/P&gt;&lt;P&gt;This is a &lt;STRONG&gt;template limitation&lt;/STRONG&gt;, not a calculation issue.&lt;/P&gt;&lt;HR /&gt;&lt;H2&gt;Why you can’t find the property in the template&lt;/H2&gt;&lt;P&gt;The most common reasons are:&lt;/P&gt;&lt;H3&gt;1. The template uses the default line item table&lt;/H3&gt;&lt;P&gt;The default table:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Supports only a predefined set of standard fields&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Does not surface custom line item properties&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;H3&gt;2. The property is custom (calculated or not)&lt;/H3&gt;&lt;P&gt;This is expected behavior.&lt;BR /&gt;Custom line item properties &lt;STRONG&gt;do not appear by default&lt;/STRONG&gt; in templates unless the table is custom-configured.&lt;/P&gt;&lt;H3&gt;3. The template was created before the property existed&lt;/H3&gt;&lt;P&gt;In some cases, templates don’t refresh available fields automatically. Re-adding the line item table or duplicating the template can help.&lt;/P&gt;&lt;HR /&gt;&lt;H2&gt;What to do next (practical steps)&lt;/H2&gt;&lt;H3&gt;Option A — Use a custom line item table (recommended)&lt;/H3&gt;&lt;P&gt;In the quote template editor:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Remove the default line item table&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Insert a &lt;STRONG&gt;custom line item table&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Manually add the calculated property as a column&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This is the &lt;STRONG&gt;only reliable way&lt;/STRONG&gt; to surface custom line item calculations.&lt;/P&gt;&lt;HR /&gt;&lt;H3&gt;Option B — Use an existing supported field&lt;/H3&gt;&lt;P&gt;If the number must appear on quotes but &lt;STRONG&gt;not necessarily as its own column&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Map the value into a supported field (e.g., unit price or total)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Let HubSpot render it automatically&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Less flexible, but simpler.&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;If you want, tell me:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Your Sales Hub tier&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Whether this is a &lt;STRONG&gt;quote&lt;/STRONG&gt; or &lt;STRONG&gt;estimate&lt;/STRONG&gt; template&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Whether you're using the default or custom line item table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;it can give you exact click-by-click steps.&lt;/P&gt;&lt;P&gt;I hope that helps!&lt;/P&gt;&lt;P&gt;Robyn&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Feb 2026 16:07:28 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Tips-Tricks-Best-Practices/custom-calculation-formula-for-line-items/m-p/1248562#M14668</guid>
      <dc:creator>RNoll</dc:creator>
      <dc:date>2026-02-05T16:07:28Z</dc:date>
    </item>
  </channel>
</rss>

