# Counting filter & airtable API

**URL:** <https://forum.adalo.com/t/counting-filter-airtable-api/11165>\
**Category:** External Collections, Custom Actions & Collections\
**Created:** [April 8, 2021, 2:02pm UTC](https://forum.adalo.com/t/counting-filter-airtable-api/11165 "2021-04-08T14:02:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![reginald](https://avatars.discourse-cdn.com/v4/letter/r/9dc877/32.png) [@reginald](https://forum.adalo.com/u/reginald)\
**Post date:** [April 8, 2021, 2:02pm UTC](https://forum.adalo.com/t/counting-filter-airtable-api/11165/1 "2021-04-08T14:02:36Z")

</div>

Hello everybody,

I’m currently trying to migrate my collections to airtable but I’m stuck with something that was working when I had my data on adalo and not working when my data is in airtable

basically I’ve two databases in airtable “users” and “challenges”, and a user can see challenges and chose to complete one with a button. So I’ve a third database “UserxChallenges” where a line is created when the button is clicked. the button dispear (with the “visibility” function in adalo) if the count of user x id challenge is greater than 0 in my 3rd database. It function perfectly well in adalo but not if my database is in airtable.

Through Airtable the filter after a count formula doesn’t work. Is it normal ? I’ve make multiple test and it always count 0 if I put filter in my count (see photo attached). I think it’s because i only can use “custom filter” when counting lines and not “filterByformula” but I’m not really sure

Anyone could help me with this ?

 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/7/71ccda62c89c9dccea745f0948e735ae21cb0ef5.png)
