Forum Discussion

Rsanjuan's avatar
Rsanjuan
Advocate III
9 years ago
Solved

Replace null with 0

This may be a very basic question, but I want to add two columns together, and one column has a null value for now.  I know I can add them together by replacing all the null values with 0.  My question is if the field is updated in Salesforce, will that value still be 0?  Or will it change to the updated value?

 

Thanks!

  • Once the Salesforce data is updated, then, upon refresh, the null will be something not null and thus your addition would be that non-null value plus your other, presumably non-null value and thus your first non-null value would be non-zero (assuming your IF logic is correct) and thus the updated value.

1 Reply

  • Greg_Deckler's avatar
    Greg_Deckler
    Community Champion

    Once the Salesforce data is updated, then, upon refresh, the null will be something not null and thus your addition would be that non-null value plus your other, presumably non-null value and thus your first non-null value would be non-zero (assuming your IF logic is correct) and thus the updated value.