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:
CASE
WHEN ({Extender Window:Value}) IS NULL THEN ({GP Table:Amount} – ({GP Table:Cost}))
ELSE ({GP Table:Amount} – ({GP Table:Cost} + {Extender Window:Value}))
END
The CASE statement in calculated fields can be very helpful to get the desired results in your SmartLists. Have fun with this one and let me know if you have additional ideas for calculated fields you would like to see.
Thanks,
Chris Dew
Director of Product Management
Curious to learn more about SmartList Builder or Extender? Reach out to us at sales@eonesolutions.com.
No comments:
Post a Comment