Where clause to analytic functions January 29, 2016 One can filter data from the partitioning clause of an analytic function using case ie: select MIN(case when state <> 'CA' then createdate end) over (partition by id) MINACTIVEDATE from table; Read more