Filter expression for parent table

I want to add a filter to an Invoke data source method that is based on a value of the parent of the entity that I am invoking the get method on. I'm not sure how to write the expression of if it is even possible?

Thanks
Dave