# Function to filter through a table not working - out of ideas on what could be wrong

**URL:** https://community.thunkable.com/t/function-to-filter-through-a-table-not-working-out-of-ideas-on-what-could-be-wrong/3267279
**Category:** Questions about Thunkable X
**Created:** [October 12, 2024, 4:38pm UTC](https://community.thunkable.com/t/function-to-filter-through-a-table-not-working-out-of-ideas-on-what-could-be-wrong/3267279 "2024-10-12T16:38:23Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![siwm14622lkniy](https://avatars.discourse-cdn.com/v4/letter/s/bb73d2/32.png) [@siwm14622lkniy](https://community.thunkable.com/u/siwm14622lkniy)
#### Post date: [October 12, 2024, 4:38pm UTC](https://community.thunkable.com/t/function-to-filter-through-a-table-not-working-out-of-ideas-on-what-could-be-wrong/3267279/1 "2024-10-12T16:38:23Z")

</div>

I’m trying to filter through an internal table to find the results that match certain criteria.  
this is the original code I made to do this (this is gonna be long and complicated so thank you to anyone who reads it)

 ![Capture d’écran, le 2024-10-12 à 12.29.56](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/2/12fb83e1bf8b364798e35f358f726709ff225123.png)

there’s a whole login process before getting to this page, and when I go through the demo to this page, this is what I get

 ![Capture d’écran, le 2024-10-12 à 11.54.28](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/4/041f81f7294a08fd58f1fd5863d24e20fe7b79cd.png)  
the fact that its showing nothing is really weird because I have a message programmed to show if it doesn’t find anything (that function is programmed to run as soon as the page opens)  
weirdly tho, I do get the response saying no doctors were found if I start the demo on the filter page, which is to be expected because if you start on the demo page, you havent entered any filter criteria

i duplicated the file and tried to narrow down where the problem is and ended up with this

 ![Capture d’écran, le 2024-10-12 à 12.36.12](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/2/02663ffb4b3757187ae08171810ac88e13ab17b9.png)

it really seems like what’s blocking is the language part, cause as soon as I added that it started to block on the new file too  
if you read all of this, thank you so much!! I tried to be as clear as I could, but I could only include three photos and this is only one part of an app my team is building, so if lmk you need context or a link to the project. Ive been trying to solve this for hours im so confused, any advice is super appreciated.

---

<div class="post-metadata">

### Author: ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)
#### Post date: [October 18, 2024, 6:45pm UTC](https://community.thunkable.com/t/function-to-filter-through-a-table-not-working-out-of-ideas-on-what-could-be-wrong/3267279/2 "2024-10-18T18:45:37Z")

</div>

Hello @siwm14622lkniy  
Thank you for sharing all the information and screenshots  
Have you tried to add [“wait” block](https://docs.thunkable.com/blocks/blocks/control#wait-1-seconds) above the “Set text items” block?  
It might need some seconds to execute all these blocks before you set the simple list

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)
#### Post date: [January 16, 2025, 6:46pm UTC](https://community.thunkable.com/t/function-to-filter-through-a-table-not-working-out-of-ideas-on-what-could-be-wrong/3267279/3 "2025-01-16T18:46:15Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
