Custom Fiters for two dimensions using or

I would like to create a custom filter where two dimensions are not null . The dimensions are both strings. I’m not able to get results using the code below

 ${sampling.comment} != null OR ${sampling.error_tag} != null