I imagine you could achieve something like this using a combination of eventstats and streamstats .
... | eventstats count as totalcount | streamstats count as dcount by Client,Policy,Schedule | where count>20 AND dcount<2
eventstats gets the total count of events and streamstats assigns a running count for each combination of Client,Policy,Schedule. where then checks if the condition that count>20 has been met and if so it filters the events where dcount<2 , that is, only 1 event per the combinatioin you want to dedup on.
... View more