Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
CASE WHEN formula question
How can I do a nested Case When statement for a saved search? In other words:
If A or B then 1 else if C or D then 2 else if E or F then 3
More specifically:
case when {entitystatus}='A' or {entitystatus}='B' then 1 else case when {entitystatus}='C' or {entitystatus}='D' then 2 else case when {entitystatus}='E' or {entitystatus}='F' then 3 end
I can't seem to get the correct combination of using parenthesis, CASE WHEN, ELSE CASE WHEN. Is there a better way to do this?
Thanks!
Derek
0