# Multi select filter

**URL:** <https://community.hubspot.com/t/multi-select-filter/48895>\
**Category:** CMS Development\
**Tags:** hubdb\
**Created:** [December 22, 2021, 9:55am UTC](https://community.hubspot.com/t/multi-select-filter/48895 "2021-12-22T09:55:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ben-duchy](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ben-duchy/32/84083_2.png) [@ben-duchy](https://community.hubspot.com/u/ben-duchy)\
**Post date:** [December 22, 2021, 9:55am UTC](https://community.hubspot.com/t/multi-select-filter/48895/1 "2021-12-22T09:55:14Z")

</div>

Does anyone know how or if its possible to use the ‘selectattr’ filter for a multi select in HubDB?

For a normal select list I use something like:

`{% set housename = house_db | selectattr ("housetype.name","equalto","Buckingham") %}`

However I have changed the column type in HubDB to be a multi-select and updating the above filter to the below doesn’t work. Does anyone know what I need to do?

`{% set development = house_db | selectattr ("housetype.name","contains","Buckingham") %}`

---

<div class="post-metadata">

**Author:** ![ben-duchy](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ben-duchy/32/84083_2.png) [@ben-duchy](https://community.hubspot.com/u/ben-duchy)\
**Post date:** [December 22, 2021, 11:42am UTC](https://community.hubspot.com/t/multi-select-filter/48895/2 "2021-12-22T11:42:14Z")

</div>

I’ve figured it out…

I started by calling in the whole table, then using a secondary loop combined with an if condition manged to filter out the relevant rows.

`{% set house_type_db = hubdb_table_rows(1234567) %}`

```lia-code-sample
{% for row in house_type_db %}
 {% for item in row.development %}
 {% if item.name == "Chapelgarth" %}
 <!-- Show slick slider items -->
 {% endif %}
 {% endfor %}
{% endfor %}

```
