Clickhouse: Adding IF to $conditional_ALL Filter is not working

I’m Using Clickhouse Connector.

I’m putting this line in a Panel

AND $__conditionalAll( referer ${AND_referer} (${referer:sqlstring}), CASE WHEN ${referer} = ‘EMPTY’ THEN ‘’ ELSE ${referer:sqlstring} END)

But it’s seems like $__conditionalAll filter is not getting the value from the “CASE” sentence

I tried to change CASE to IF and I’m getting the same error.
Just doesn’t get the value from the “$referer” filter

It will be nice if you specify which datasource are you using, because each have own options. I guess it is Clickhouse.

Yes I’m using Clickhouse