Advanced filter with OR or AND operators

I have a field of type tags and I need a filter of records with tag1 AND tag2 or tag1 OR tag2

similary by multi choise - there is possible set filter by click the coises but it is with OR operator - that is for most cases good but not for All

Is there a way to set more complex filtering rules? Thank you