Calculation Property Doesn't Work if a Property is Blank
SOLVE
Hello,
Currently, we have the enterprise level HubSpot account and have been working on creating calculation properties to add together transactional pieces. There is a major roadblock with this property as it doesn't allow a calculation formula to run if there is a blank property. Is there any sort of workaround for this problem?
Calculation Property Doesn't Work if a Property is Blank
SOLVE
I agree with this entirely - except, I'd add another bigger issue.
The proposed solution of setting the input properties to 0 if blank doesn't work.
It seems that calculated properties treat "0" and "unknown" as the same thing. This is crazy for a tool that is supposed to allow you to add and multiply values - sometimes it's important that you can add "0".
Case in point - we use calculated properties to track costs relating to a project. Our costs are input in various categories. We use a calculated property to add these up.
The issue - We dont always have costs in all the categories, so naturally we input "0".
The consequence of this is that the calculated property "total costs" does not add up!
If there's a reason for this I dont understand it?
Why not give us some control over this?
E.G.
- Calculate if any of the input values are known
- Calculate if all of the input values are known
- Treat unknown numbers as "0" or some other integer?
Calculation Property Doesn't Work if a Property is Blank
SOLVE
Hi KP,
I've ran into similar issues (mostly with IE not handling calc well in some cases) and what I did was add a first "default" declaration in the CSS with the calc afterwards. If the calc isn't working it should apply the previous CSS declaration. Like:
In the first "background" above it uses an rgba value with an opacity of 0.6 and in the second it calculates that opacity based on what the user selected in the colour picker.
Calculation Property Doesn't Work if a Property is Blank
SOLVE
Hello Stephanie,
Although this a great solution, I don't believe it solves the issue with the "Calculation" property and the inability to complete the equation if there is a blank property. Below is one of the more basic equations we're looking to compute across all companies.
Calculation Property Doesn't Work if a Property is Blank
SOLVE
Apologies, I spend a lot of time stuck in CMS and was thinking of the CSS calc() function.
To solve the problem with your calculation property, perhaps you can use a Workflow to set a value of 0 (or some other default) if the property is unknown?
I think @MFrankJohnson or @bradmin use the CRM more than myself and might have a better solution.
Calculation Property Doesn't Work if a Property is Blank
SOLVE
No problem, Stephanie!
The workflow is a great idea. However, the client does not like the idea as some of their "0" values within their properties does not mean the value as 0 so we are unable to implement that plan of attack. Are there any other options like conditional formatting, etc.?