Applying a filter to a row_count check only applies to the metric, not the external column we're evaluating against. I can see why this is expected behaviour, but I would like a way to optionally ...
THEN 'ALTER TABLE ' + OBJECT_SCHEMA_NAME(pstats.object_id) + '.' + OBJECT_NAME(pstats.object_id) + ' REBUILD PARTITION = ' + CONVERT(VARCHAR(5), pstats.partition ...