Hi Marie,
Your "IF" Condition logic is fine
but You have applied the "IF" condition logic in Calculated column - Default Projection Node.
So the records are not getting filtered.
Please Use this "IF" Condition in Filter Expression - Projection node (Drag and Drop from Panel)
In Filter Expression, Write your Logic
After activation, Now check your data. The data will be filtered based on Filter expression (OK)
Thanks & Regards,
Muthuram