# Autocalculate margin & gross margin

**URL:** <https://community.hubspot.com/t/autocalculate-margin-gross-margin/12948>\
**Category:** HubSpot Ideas\
**Tags:** object, reports\
**Created:** [February 12, 2019, 11:47am UTC](https://community.hubspot.com/t/autocalculate-margin-gross-margin/12948 "2019-02-12T11:47:05Z")\
**Posts on this page:** 1\
**Showing post:** 77

<div class="post-metadata">

**Author:** ![AStolt](https://avatars.discourse-cdn.com/v4/letter/a/e0b2c6/32.png) [@AStolt](https://community.hubspot.com/u/AStolt)\
**Post date:** [November 29, 2023, 8:07am UTC](https://community.hubspot.com/t/autocalculate-margin-gross-margin/12948/77 "2023-11-29T08:07:59Z")

</div>

Hi, (EDIT) bellow

Any ideas how could I rollup Line Item - Total contract value margin that has SKU like Service or Hardware?

I´m lookin for getting these margin value rollups from different SKU´s separately.

 ![AStolt_0-1701244653478.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/c/7/c75958cd390e2ee223e87a8123d71264fdd1ba9d.png)

(EDIT)

I got this by making Propertu for both Service and Hardware and addind Codition (Product type) == Service and (Product type) == Hardware

---

_[View the full topic](https://community.hubspot.com/t/autocalculate-margin-gross-margin/12948)._
