You are here:
Edit Opportunity Line Item Nodes
To ensure that the fixed cost and variable cost of all products are included in Data Processing Engine calculations, update all nodes originating from Opportunity Line Item.
Required Editions
| Available in: Lightning Experience |
| Available in: Enterprise, Unlimited, and Developer Editions |
| User Permissions Needed | |
|---|---|
| To edit a DPE definition: |
|
This example walks you through adding two custom fields, updating the required existing nodes, adding new nodes, and adding formulas to calculate the values. Finally, the values for fixed cost and total variable cost can be aggregated for all opportunity products for a forecast period.
-
Add the custom fields from Price Book Entry as data source fields on a node.
- Search for and select the Opportunity Line Item data source node, then click Add Related Object.
- Select PricebookEntry as the object.
- Click Selected Fields and select Fixed Cost and Variable Cost.
- Enter the alias for the fields as OpportunityLineItemFixedCost and OpportunityLineItemVariableCostPerUnit.
- Click Done and Done.
-
Create a formula node to calculate the total variable cost for opportunity line
items.
-
Click New Node and enter these details.
Node Type: FormulaName: Compute OpportunityLineItemTotalVariableCost
- Save your changes.
- For Source Node, search for and select Opportunity Line Item.
-
Enter these formula details.
Alias: OpportunityLineItemTotalVariableCostField Type: NumberNumber Length: 16Decimal Places: 2Formula:
{OpportunityLineItemQuantity} * {OpportunityLineItemVariableCostPerUnit} - Click Done and Done.
-
Click New Node and enter these details.
-
Update a join node to replace the source node with the new formula node.
-
Search for and select Filtered Opportunity Join Opportunity Line
Item and then update these details.
Second Source Node: Compute OpportunityLineItemTotalVariableCostSelected Fields: OpportunityLineItemTotalVariableCost, OpportunityLineItemTotalFixedCost
- Click Done and Done.
-
Search for and select Filtered Opportunity Join Opportunity Line
Item and then update these details.
-
Add the custom fields in all join nodes that follow the Filtered Opportunity Join
Opportunity Line Item node.
Tip To find the nodes that you need to update, you can follow the reference links provided at the bottom of a node’s detail page in the sentence “This node is referenced by # node.” Or you can search for the node name.- Search for and select the Join Upserted Account Forecast Set Partner join node.
- In the First Node section, click Selected Fields.
- Add OpportunityLineItemFixedCost and OpportunityLineItemTotalVariableCost as fields and then click Done.
- For the Valid Opportunity Within Acct Frsct Set Partner Date Range Join Active Products and the Opportunity Metrics Data Join Account Forecast Set Partner Period Data join nodes, repeat the steps to add the OpportunityLineItemFixedCost and OpportunityLineItemTotalVariableCost fields.
-
Update formula nodes to ensure that the two computed values for total variable cost and
fixed cost for opportunity line items show up for each forecast period. The opportunity close
date must fall within a period’s start and end date.
- Search for and select the Compare Opportunity Metric Line Item Close Date With Period Range For Facts formula node.
-
Click Add Formula and enter these details.
Alias: ComputedFixedCostField Type: NumberNumber Length: 16Decimal Places: 2Formula:
IF({OpportunityCloseDate} >= {PeriodStartDate} && {OpportunityCloseDate} <= {PeriodEndDate} ,{OpportunityLineItemFixedCost} , 0) -
Click Add Formula again and enter these details.
Alias: ComputedTotalVariableCostField Type: NumberNumber Length: 16Decimal Places: 2Formula:
IF({OpportunityCloseDate} >= {PeriodStartDate} && {OpportunityCloseDate} <= {PeriodEndDate} ,{OpportunityLineItemTotalVariableCost} , 0) - Click Done and Done.
-
Update a slice node to ensure that the fields for ComputedTotalFixedCost and
ComputedTotalVariableCost are retained in the downstream nodes.
- Search for and select the Consolidate Field Names For Opportunity Metric Line Forecast Facts slice node.
- Click Selected Fields and select the ComputedTotalFixedCost and ComputedTotalVariableCost fields.
- Click Done and Done.
-
Update a formula node to ensure that the Data Processing Engine computed values for fixed
cost and variable cost assigned to orders is always defaulted to zero. Orders represent the
actual business of a company and the costs must be derived from the orders reported in a given
period.
- Search for and select the Compare Order Metric Line Item Close Date With Period Range For Facts formula node.
-
Click Add Formula and enter these details.
Alias: ComputedFixedCostField Type: NumberNumber Length: 16Decimal Places: 2Formula:
0 -
Click Add Formula again and enter these details.
Alias: ComputedTotalVariableCostField Type: NumberNumber Length: 16Decimal Places: 2Formula:
0 - Click Done and Done.
- Click the node reference link at the bottom of the page to open the Consolidate Field Names For Order Metric Line Forecast Facts slice node.
- Click Selected Fields and add the ComputedTotalFixedCost and ComputedTotalVariableCost fields.
- Click Done and Done.
The next step is to write back the computed values to Advanced Account Forecast Fact.
Did this article solve your issue?
Let us know so we can improve!

