The Tech Tuesday post today is inspired by real-world events. Every once in a while I see someone who has added a simple field or two using Extender and now wants to include this information in a calculation on a SmartList using SmartList Builder. What happens inevitably is that some of the records may not have a record in the Extender side of things. When you pull the field onto the SmartList you will see that you have a value of 0 (for numbers or blank for strings). The actual value behind the scenes is NULL because there was no record.
The behavior that you see in your calculated field is that a value of 0 or blank will always be returned. You can correct your calculation simply by adding a CASE statement to account for the records that don’t have values. Below you will find a sample: