Blog, Website & Page Publishing

SMomo
Member

numer property set as 0 for empty

SOLVE

I am using a number property in a calculation. But the calculation won't work if the number property is empty. is there any way to set 0 for empty in the number property?

0 Upvotes
1 Accepted solution
karstenkoehler
Solution
Hall of Famer | Partner
Hall of Famer | Partner

numer property set as 0 for empty

SOLVE

@SMomo in that case, please see my previous reply, you can use an if statement and is_known to check whether the value is known, and if not, return 0:

 

karstenkoehler_0-1742201946099.png

 

if(is_known(property),property,0)

would translate to: return the value if it is known, return 0 if it isn't.

Karsten Köhler
HubSpot Freelancer | RevOps & CRM Consultant | Community Hall of Famer

Beratungstermin mit Karsten vereinbaren

 

Did my post help answer your query? Help the community by marking it as a solution.

View solution in original post

0 Upvotes
3 Replies 3
karstenkoehler
Hall of Famer | Partner
Hall of Famer | Partner

numer property set as 0 for empty

SOLVE

Hi @SMomo,

 

What exactly should the calculation return if the number property is empty? Can you share a screenshot of your calculation?

 

Generally, you can use "is known" to check if the property has a value or not and/or an if statement to decide what should be returned when it isn't. https://knowledge.hubspot.com/properties/create-calculation-properties

 

Best regards

Karsten Köhler
HubSpot Freelancer | RevOps & CRM Consultant | Community Hall of Famer

Beratungstermin mit Karsten vereinbaren

 

Did my post help answer your query? Help the community by marking it as a solution.

0 Upvotes
SMomo
Member

numer property set as 0 for empty

SOLVE

Screenshot 2025-03-17 at 9.54.59 AM.png

I have added the image for the calculated property. I want this formula to work even if the scholarship amount is empty.

0 Upvotes
karstenkoehler
Solution
Hall of Famer | Partner
Hall of Famer | Partner

numer property set as 0 for empty

SOLVE

@SMomo in that case, please see my previous reply, you can use an if statement and is_known to check whether the value is known, and if not, return 0:

 

karstenkoehler_0-1742201946099.png

 

if(is_known(property),property,0)

would translate to: return the value if it is known, return 0 if it isn't.

Karsten Köhler
HubSpot Freelancer | RevOps & CRM Consultant | Community Hall of Famer

Beratungstermin mit Karsten vereinbaren

 

Did my post help answer your query? Help the community by marking it as a solution.

0 Upvotes