The short answer here is yes, you can use calculated fields as a filter. Have you confirmed that your filter is actually working as intended? From the sample you’ve given above it appears that you are you are comparing the results_with_expiration field with the 12months field. Is that correct?
I’d check in the Data Prep returned table that you are actually seeing results for both values in your output to make sure.