Report on Line Items

Hello,

is it possible to create a Reporting Property on Company Level that looks into deals to count specific line items + their amounts?

Lets say I have 2 deals for one company and of Line Item A both deals have the amount 2 in them.
Is it possible (maybe rollup) to sum the amount of Line items into this calculated property on the Company Level?

Thanks in advance.

Hi @maulpaurer,

Yes, you can do this, but HubSpot doesn’t have a built-in roll-up feature for line items at the company level.

One way to work around this is by using a workflow. You can create a custom property on the Company object (Total Line Item A Amount) and set up a workflow that triggers when a deal containing Line Item A is created or updated. The workflow can then sum the values and store them in the Company property.

Hope it helps you to complete your task

Thank you.
This should be done with Custom Code, right?

Something like

output_value += Amount Line Item A
?
Thanks again

Hi @maulpaurer,

If the ultimate goal is to create reports, you could directly use custom report builder to achieve it:

  1. Select Company, Deals, Line Items as data sources
  2. Set Company Name as x-axis
  3. Not sure what you mean by amount
    1. if it’s sum of quantity, set Quantity as y-axis
    2. if it’s sum of price, set Net price as y-axis
  4. Break down by Line items Name
  5. Apply relevant filters (e.g. Create date)

Best,

Chaofan Wu