Discussions
CASE WHEN conditions
Hi,
I feel very close but not quite there
SUM(CASE WHEN ({item.internalid} = 930 THEN 0 ELSE 1 END))
I'm trying to use this in a saved search Summary condition on Invoice transactions grouping on invoice number. I want to find any invoice where item with internal ID = 930 was sold and nothing else was on the invoice.
I think the issues is with my {item.internalid} = 930 bit, because it is always getting to the "ELSE". I've tried {item.internalid} = '930' too and that does not work.
Ideas?
Thanks,
Jean