Filtering for trait code equal LMID