Including readonly fields with 'case when' filter clause