Noel B
CASE WHEN {createdfrom} LIKE ('Purchase Order%') AND {type} = 'Item Receipt' THEN 1 ELSE 0 END