# HubDB filtering by custom module

**URL:** <https://community.hubspot.com/t/hubdb-filtering-by-custom-module/9908>\
**Category:** CMS Development\
**Created:** [August 21, 2018, 7:01am UTC](https://community.hubspot.com/t/hubdb-filtering-by-custom-module/9908 "2018-08-21T07:01:28Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![Anton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/anton/32/103167_2.png) [@Anton](https://community.hubspot.com/u/Anton)\
**Post date:** [August 22, 2018, 2:00pm UTC](https://community.hubspot.com/t/hubdb-filtering-by-custom-module/9908/15 "2018-08-22T14:00:52Z")

</div>

@tjoyce - it works!!! You’ve made my day!

The only thing that left is to connect the other “if-statement” with this one.

I’ve tried

```auto
{% if module.job_anzahl =='5'%}
{% set table = hubdb_table_rows(XXXXXX, 'myFilter&limit=5') %}
{% elif module.job_anzahl =='10'%}
{% set table = hubdb_table_rows(XXXXXX, 'myFilter&limit=10') %}
...
{%endif%}

```

and

```auto
{% if module.job_anzahl =='5'%}
{% set table = hubdb_table_rows(XXXXXX, myFilter&'limit=5') %}
{% elif module.job_anzahl =='10'%}
{% set table = hubdb_table_rows(XXXXXX, myFilter&'limit=10') %}
...
{%endif%}

```

but non of those worked

---

_[View the full topic](https://community.hubspot.com/t/hubdb-filtering-by-custom-module/9908)._
