Filter before reducing in Ab calculation