Hi y’all!
I’m working on a project that I’ve created a number of calculated properties for. In general, there are two types of contracts - hourly (billed by week) and monthly flat rate. Some deals have both types of contracts, so I’m solving for total contract value combining the value of both types of contracts. Here’s the basic idea:
projected total hourly value (hourly rate * weekly hours * length of contract)
+
projected total monthly value (rollup of total monthly rate of all vehicle contracts[custom object] * length of contract)
=
Projected Total Contract Value
However, whenever a deal doesn’t have both types of contracts (aka one of the properties in the calculation is null), the calculated properties evaluate to null.
I see two options:
1. update all my calculated properties with if statements that check whether the property has a value and if not use 0 instead.
2. make sure that the properties always have a value - meaning 0’s for any that don’t apply to the deal.
Anyone have any other ideas? Option one seems more reasonable but I figured someone here might have a better idea.
Thanks in advance!