Filtering columns by different values

I want 3 columns in my querie, but 2 of them must be filtered by an id of a table and the other must be filtered by a variable, how do I do that?

Hi @pedrohcarv
Like this:

I would recommend that you read through the documentation, which might help you with other questions:
Redirecting…