I'm receiving an unexpected error when I try to ru...
# suiteanalytics
n
I'm receiving an unexpected error when I try to run a search with the following formula: case when {custitem_a} != 'NULL' AND {quantityonhand} = 'NULL' then ({custitem_a}-{custitem_b}) else X end Can anyone help identify what is wrong with the formula, please? My own efforts have been unsuccessful.
My objective is to leverage case statements to build priority logic for a calculation - when A is not empty but Y is empty, then subtract Z from A...
b
Dont compare numbers to strings
l
I don't put quotes between NULL. Maybe, that's (one of) the reason/s.
n
@battk I dont follow, can you elaborate?
b
quantityonhand is a number
'NULL' is a string
its invalid to compare a string to a number
g
IS NOT NULL
👍 1
🤣 1
b
n
@George McMullen I had just switched this and it appears to be working now - ty
👍 1
@battk ty for the clarification and the link.
g
I've done the same thing a million times. 🤣