in set analysis you can use field={var} but the right side of the expression must have 1 value so you can use Max, Min and so on but not expressions that returns more than one value.
Another problem is the sysntax, but before this, try to define another expressoin