I would create a set (either using the set functionality) or concatenating ID and Name ([ID]+" - " + [Name]) and using a quick filter.
Sorry i was not clear actually the formula can change dynamically that is more columns can be used.For example
[ID]='1' and [name]='sarmad' OR [Department]='Computer Science' Here Department is another column
Also the operators (AND,OR) can be used any where with out any fixed pattern. So quick filter can not be used i want to change the formula without using Tableau calculated field editor.