How can I get the average value of the data in column A only if there are more than 3 numbers greater than zero? It’s basically the equivalent of
SELECT AVG(IIF(COUNT(IIF(columnA>0,1,0))>3,columnA,Null)) I think, but aggregate functions can’t be nested.
I need to get this average for each column of multiple columns all at once that can have different numbers of data greater than 0, or maybe none greater than zero.
Thanks.
SELECT AVG(IIF(COUNT(IIF(columnA>0,1,0))>3,columnA,Null)) I think, but aggregate functions can’t be nested.
I need to get this average for each column of multiple columns all at once that can have different numbers of data greater than 0, or maybe none greater than zero.
Thanks.