Hello, I am trying some formulae in saved searches results. Does anyone know how to use multiple case when statements ?
I have here a sample formula but the result says formula is invalid, any thoughts why is this so? Any response is appreciated! Thanks!
CASE WHEN (({job.altname} not like '%'||('Six Sigma')||'%') AND {customer} is not null) OR ({location.id} in (12,13,5,14)) OR {job.altname} like '%'||UPPER('Shop Hours')||'%' OR {job.altname} like '%'||UPPER('MJF 4200')||'%' THEN '1'
WHEN (({job.altname} like '%'||('Six Sigma')||'%') OR {customer} is null) AND ({location.id} is null or {location.id} not in (12,13,5,14)) AND {job.altname} not like '%'||UPPER('Shop Hours'||'%' AND {job.altname} not like '%'||UPPER('MJF 4200')||'%') THEN '2'
ELSE '0' END