Filter in view with some dynamic value
I won't recommend views_php module. This will hamper performance of the site.

You can use hook_views_query_alter(&amp;$view, &amp;$query) for this. What you have to do is - add field_xyz filter inside view, and override it in hook_views_query_alter(&amp;$view, &amp;$query).