Custom Expression error: Expected boolean but found 'MAX'

Hello,
I’m trying to use custom expression to find MAX date from data set. But I get this strange error:

Is there something I can do or how to use the MAX function in custom expression?

Hi @villlem
That’s currently not possible:
https://github.com/metabase/metabase/issues/4482 - upvote by clicking :+1: on the first post

Thank you for your answer. Is where any examples of how the MAX works? I tried to used with integer value aswell but still same error that it expects a boolean.

@villlem But you are using the function on a filter, but the function returns a value, so you would need to do something like MAX([column]) > 123