Filter Clause implementation for Stats page