# Adding calculation field

**URL:** <https://community.hubspot.com/t/adding-calculation-field/127846>\
**Category:** CRM\
**Tags:** starter\
**Created:** [March 12, 2025, 6:37pm UTC](https://community.hubspot.com/t/adding-calculation-field/127846 "2025-03-12T18:37:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![CClark3](https://avatars.discourse-cdn.com/v4/letter/c/87869e/32.png) [@CClark3](https://community.hubspot.com/u/CClark3)\
**Post date:** [March 12, 2025, 6:37pm UTC](https://community.hubspot.com/t/adding-calculation-field/127846/1 "2025-03-12T18:37:24Z")

</div>

Hello,

Is it possible to add an Or function in a calculated field. So we have 2 properties that captures revenue by the region. So we have Americas Line item revenue and Europe linje item revneue I need to add these 2 fields together so we can start looking at revenue together. In most cases the America field may be blank but the Europe field is not we would still want to show the Europe Amount. is it a way to create a calculation that will add these 2 fields even if one is blank?

---

<div class="post-metadata">

**Author:** ![JPlas](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jplas/32/12086_2.png) [@JPlas](https://community.hubspot.com/u/JPlas)\
**Post date:** [March 12, 2025, 10:43pm UTC](https://community.hubspot.com/t/adding-calculation-field/127846/2 "2025-03-12T22:43:23Z")

</div>

Hello, @CClark3 thank you for posting in our Community!

If you want to display the total amount based on its line items, you **cannot** use a calculated property, as there is no option to select **line items** as the object for calculation.

The **Deal Amount** could be update automatically based on the associated line items if this setting is enabled. Alternatively, you can create a **quote, invoice, payment link, or subscription** based on the line items.

For more details, refer to HubSpot’s documentation:

🔗 [Edit Products and Terms in the Line Items Editor](https://knowledge.hubspot.com/products/edit-products-and-terms-in-the-line-items-editor)
