---
schema_version: "1"
id: 720d9f0c20b9109c643c500201ed9a927bc6f41044fbb0bc61dfb4c80ffa02a2
title: Add Aggregation Steps (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_add_aggregation_steps.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_add_aggregation_steps.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: f0bff611477c1f056df5cc806779f094ebdb477e7050ffa96079e140ba6cca78
description: For the managed package runtime, if the input to the calculation procedure is an array—for example, multiple family members are applying for insurance and want to view the total premium—the calculation procedure runs for each input. Using an aggregation step, you can aggregate the procedure results and execute additional calculations on the aggregated result.
products:
  - Omnistudio
release: "264"
---
# Add Aggregation Steps (Managed Package)

For the managed package runtime, if the input to the calculation procedure is an array—for example, multiple family members are applying for insurance and want to view the total premium—the calculation procedure runs for each input. Using an aggregation step, you can aggregate the procedure results and execute additional calculations on the aggregated result.

![Managed Package app icon](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/resources-global/_corporate/images/managedpackageicon.png) This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see [Omnistudio Help](https://help.salesforce.com/s/articleView?id=xcloud.os_omnistudio_standard.htm&language=en_US).

1. On the Vlocity Calculation Procedure Version Detail page, scroll down to the Pricing Calculation section.
2. In the Aggregation Step area, click **Add Step**.
3. Select **Aggregation**.
4. In the first field, enter one of the following operators:
    
    - **SUM**
    - **AVG**
    - **MIN**
    - **MAX**
5. Enter the variable to be aggregated enclosed in parentheses. For example, (price).
6. In the second field, enter a variable to represent the aggregated variable. For example, totalPrice.
7. Create all the other aggregation steps you need to complete the aggregation.
8. Click **Save Calculation Procedure**.