hey guys I’m trying to create a saved search which...
# general
l
hey guys I’m trying to create a saved search which shows items below reorder point - I used the formula on an inventory balance search as “{onhand}<{item.locationreorderpoint}” but am getting “Error: Invalid Expression”
c
Try a case when statement in your criteria and see if that works. CASE WHEN {onhand} < {item.locationreorderpoint} THEN 1 ELSE 0 END equal to 1
😄 1
a
just NVL around the field should do it
😄 1
l
@Chloë - Thanks for that! @AK47 - never used NVL. What does it do? And should I just do a NVL[{onhand}<{item.locationreorderpoint}] as the formula?
e
NVL({onhand}, 0) basically if it’s null spit out a numeric value (in this case zero).
😄 1
🙂 1
👍 1
a
correct, it's like isNULL() in SQL. If the value is null, put something other value.
👍 1
l