Using logical operators in aggregate formula

Using logical operators in aggregate formula

Hi,

I was wondering if its possible to use logical operators like AND / OR in aggregate formulas?

For example:

countif("Var X"='yes' AND "Var Y" > 1)

If not how else can i solve this kind of problems?

Cheers,
Paul