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
Chloë
08/10/2020, 4:03 PM
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
AK47
08/10/2020, 4:40 PM
just NVL around the field should do it
😄 1
l
leo
08/10/2020, 4:43 PM
@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
Eric B
08/10/2020, 4:46 PM
NVL({onhand}, 0) basically if it’s null spit out a numeric value (in this case zero).
😄 1
🙂 1
👍 1
a
AK47
08/10/2020, 5:09 PM
correct, it's like isNULL() in SQL. If the value is null, put something other value.