<?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: Calculated fields return null values in Data Hub</title>
    <link>https://community.hubspot.com/t5/Data-Hub/Calculated-fields-return-null-values/m-p/1133108#M2976</link>
    <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/821939"&gt;@Huntscape-Ops&lt;/a&gt;&amp;nbsp;can you please share a screenshot? If you type the shown formula exactly, you shouldn't get any errors.&lt;/P&gt;</description>
    <pubDate>Mon, 07 Apr 2025 18:46:04 GMT</pubDate>
    <dc:creator>karstenkoehler</dc:creator>
    <dc:date>2025-04-07T18:46:04Z</dc:date>
    <item>
      <title>Calculated fields return null values</title>
      <link>https://community.hubspot.com/t5/Data-Hub/Calculated-fields-return-null-values/m-p/1133088#M2973</link>
      <description>&lt;P&gt;I am trying to use a calculated field, but if one of the values is empty in the calculation, then it returns a null value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;([properties.imported_total] + [properties.total_donations])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There has to be an easy way to fix this but chatgpt is telling me to use ops hub (which is fine) and use this formula in the format data step of the workflow:&amp;nbsp;{{ properties.imported_total | default(0) }} + {{ properties.total_donations | default(0) }}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But that causes an error in the custom code step.&amp;nbsp; Please help&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 18:08:28 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Data-Hub/Calculated-fields-return-null-values/m-p/1133088#M2973</guid>
      <dc:creator>Huntscape-Ops</dc:creator>
      <dc:date>2025-04-07T18:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated fields return null values</title>
      <link>https://community.hubspot.com/t5/Data-Hub/Calculated-fields-return-null-values/m-p/1133090#M2974</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/821939"&gt;@Huntscape-Ops&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can solve this with an 'if' statement and the 'is known' function, both available through drop downs in the formula editor - no Operations Hub required. If the number is known, return the number, if not, return a 0. Repeat the same for the second part of the calculation and that should do the trick.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="karstenkoehler_0-1744049647724.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/142749i0BA5D1AE9F42835D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="karstenkoehler_0-1744049647724.png" alt="karstenkoehler_0-1744049647724.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 18:14:15 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Data-Hub/Calculated-fields-return-null-values/m-p/1133090#M2974</guid>
      <dc:creator>karstenkoehler</dc:creator>
      <dc:date>2025-04-07T18:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated fields return null values</title>
      <link>https://community.hubspot.com/t5/Data-Hub/Calculated-fields-return-null-values/m-p/1133102#M2975</link>
      <description>Thank you for the quick reply but I am not advanced enough to do that. I&lt;BR /&gt;keep getting errors in the calculation&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Apr 2025 18:38:02 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Data-Hub/Calculated-fields-return-null-values/m-p/1133102#M2975</guid>
      <dc:creator>Huntscape-Ops</dc:creator>
      <dc:date>2025-04-07T18:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated fields return null values</title>
      <link>https://community.hubspot.com/t5/Data-Hub/Calculated-fields-return-null-values/m-p/1133108#M2976</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/821939"&gt;@Huntscape-Ops&lt;/a&gt;&amp;nbsp;can you please share a screenshot? If you type the shown formula exactly, you shouldn't get any errors.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 18:46:04 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Data-Hub/Calculated-fields-return-null-values/m-p/1133108#M2976</guid>
      <dc:creator>karstenkoehler</dc:creator>
      <dc:date>2025-04-07T18:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated fields return null values</title>
      <link>https://community.hubspot.com/t5/Data-Hub/Calculated-fields-return-null-values/m-p/1133111#M2977</link>
      <description>&lt;P&gt;This is my original calculation but it puts out null value when one of the fields is empty.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HuntscapeOps_0-1744051735037.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/142753i92AD8348C92B56D6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HuntscapeOps_0-1744051735037.png" alt="HuntscapeOps_0-1744051735037.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have no idea how to adapt this to "if" and "is known" as you were describing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 18:49:42 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Data-Hub/Calculated-fields-return-null-values/m-p/1133111#M2977</guid>
      <dc:creator>Huntscape-Ops</dc:creator>
      <dc:date>2025-04-07T18:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated fields return null values</title>
      <link>https://community.hubspot.com/t5/Data-Hub/Calculated-fields-return-null-values/m-p/1133114#M2978</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/821939"&gt;@Huntscape-Ops&lt;/a&gt;&amp;nbsp;there's no special trick to this - just find the screenshot I shared in my earlier reply and type that exactly into the formula field, character by character &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 18:52:42 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Data-Hub/Calculated-fields-return-null-values/m-p/1133114#M2978</guid>
      <dc:creator>karstenkoehler</dc:creator>
      <dc:date>2025-04-07T18:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated fields return null values</title>
      <link>https://community.hubspot.com/t5/Data-Hub/Calculated-fields-return-null-values/m-p/1133117#M2979</link>
      <description>&lt;P&gt;I lied.&amp;nbsp; The formula no longer has errors but I am still getting null values in the calculated field&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 19:01:14 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Data-Hub/Calculated-fields-return-null-values/m-p/1133117#M2979</guid>
      <dc:creator>Huntscape-Ops</dc:creator>
      <dc:date>2025-04-07T19:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated fields return null values</title>
      <link>https://community.hubspot.com/t5/Data-Hub/Calculated-fields-return-null-values/m-p/1133120#M2980</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/821939"&gt;@Huntscape-Ops&lt;/a&gt;&amp;nbsp;can you please share a screenshot and the error message? I can't help if I don't have any details.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 19:02:51 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Data-Hub/Calculated-fields-return-null-values/m-p/1133120#M2980</guid>
      <dc:creator>karstenkoehler</dc:creator>
      <dc:date>2025-04-07T19:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated fields return null values</title>
      <link>https://community.hubspot.com/t5/Data-Hub/Calculated-fields-return-null-values/m-p/1133123#M2981</link>
      <description>&lt;P&gt;Does this help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HuntscapeOps_0-1744052623041.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/142755iD5426A6428D560DD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HuntscapeOps_0-1744052623041.png" alt="HuntscapeOps_0-1744052623041.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 19:04:37 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Data-Hub/Calculated-fields-return-null-values/m-p/1133123#M2981</guid>
      <dc:creator>Huntscape-Ops</dc:creator>
      <dc:date>2025-04-07T19:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated fields return null values</title>
      <link>https://community.hubspot.com/t5/Data-Hub/Calculated-fields-return-null-values/m-p/1133127#M2982</link>
      <description>Wow that worked. I had 1 space off.&lt;BR /&gt;&lt;BR /&gt;Thank you so much&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Apr 2025 19:07:02 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Data-Hub/Calculated-fields-return-null-values/m-p/1133127#M2982</guid>
      <dc:creator>Huntscape-Ops</dc:creator>
      <dc:date>2025-04-07T19:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated fields return null values</title>
      <link>https://community.hubspot.com/t5/Data-Hub/Calculated-fields-return-null-values/m-p/1133130#M2983</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/821939"&gt;@Huntscape-Ops&lt;/a&gt;&amp;nbsp;strange - can you save this and see if it populates correctly on records? It should work, see my screenshot. If it doesn't after refreshing, I'd recommend checking with HubSpot support.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 19:08:33 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Data-Hub/Calculated-fields-return-null-values/m-p/1133130#M2983</guid>
      <dc:creator>karstenkoehler</dc:creator>
      <dc:date>2025-04-07T19:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated fields return null values</title>
      <link>https://community.hubspot.com/t5/Data-Hub/Calculated-fields-return-null-values/m-p/1133132#M2984</link>
      <description>&lt;P&gt;I refreshed the screen and put the formula back in, and it is working now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 19:10:50 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Data-Hub/Calculated-fields-return-null-values/m-p/1133132#M2984</guid>
      <dc:creator>Huntscape-Ops</dc:creator>
      <dc:date>2025-04-07T19:10:50Z</dc:date>
    </item>
  </channel>
</rss>

