Hi Morris,
try to use created variable in rows fo rthat block and lets see what values it is picking if it showing correct values as then apply filter before that make sure to apply sort on particular dim in the block.
have you tried another option i.e enable avoid duplicate row aggregation
Thanks