Your Where Clause should be in () Like Where (Count>1 and Status="Fail")
But still there is a mistake you are calculating the count and applying the filter of Count>1 within the same formula that is weird but still give it a shot.
Like I suggested earlier use the count in Block level filter to remove unwanted records.