Filter using toggle/checkbox help

It’s written in my post. I want to create a filter using multiple checkbox/toggle but I don’t know exactly how. I provided the image as an example of what I want to do. Right now the only thing I can do is to filter a specific selection, like what my code is doing. That’s also why I’m asking if I should use a query here or not, of which I also don’t know how to do in WiX.