Building a filter

Hi I’m trying to build a filter to let users choose options from a dropdown.

Here an example

I’m just wondering if this is possible and if it is how i would go about building it.