So you are really only wanting a filter, just one that corresponds to the input field
This is probably beyond the realms of simple in Tableau.
The only way I can think of is by using a fairly nasty logic statement that calculates the possibilities on a True/False outcome. Also, this will need to return a string output rather than boolean due to the logic so it will be unable to take advantage of boolean performance.
I have achieved something like this last summer, I can look this out to see what I did, although I seem to remember I restructured the data in the underlying SQL table
Have you attempted this in Excel?
I haven't used excel yet but that was going to be my next step. I'll update the thread if I get anywhere with Tableau.