# Filter Google sheet Data and show the result in a DVL

**URL:** https://community.thunkable.com/t/filter-google-sheet-data-and-show-the-result-in-a-dvl/1635841
**Category:** Tutorials and DIY Guides
**Tags:** google, community, data-source, data-viewer, tips
**Created:** [November 26, 2021, 3:44pm UTC](https://community.thunkable.com/t/filter-google-sheet-data-and-show-the-result-in-a-dvl/1635841 "2021-11-26T15:44:01Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [November 26, 2021, 3:44pm UTC](https://community.thunkable.com/t/filter-google-sheet-data-and-show-the-result-in-a-dvl/1635841/1 "2021-11-26T15:44:01Z")

</div>

Just wanted to share this trick to filter data in a DVL

For Example, if I have a sheet with numbers and names then I need to add another column to be the condition to filter by

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/e/de45cc24b21428b697995ab03b9f4fbd04a2297c.png)

In this example I have a number column and a name column and the 3rd is the search column.

In a separate sheet have the same two column headings

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/8/18630834e426a23e86350c32c4d93ad4f8db4667.png)

In the row immediately below the heading of the first column, enter this function  
**=filter(Sheet1!A2:B7,Sheet1!A2:A7=Sheet1!C2)**

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/7/277ef9df669c342dd4cc37cecd3b5c3f5c636a42.png)

Now in Thunkable, add a DVL and bind it to the second sheet. Have a button to update the search column in the first sheet. When the value of this cell is updated the second sheet will reflect the filtered data.  
You will need to **refresh** the DVL to get the filtered results

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/c/4ca872e61eb8e4724f54e56c51940fd5afaf391f.png)

Hope you find it useful.

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [November 26, 2021, 3:47pm UTC](https://community.thunkable.com/t/filter-google-sheet-data-and-show-the-result-in-a-dvl/1635841/2 "2021-11-26T15:47:44Z")

</div>

This is equivalent a vLookup, right? In this use case, anyhow?

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [November 26, 2021, 3:49pm UTC](https://community.thunkable.com/t/filter-google-sheet-data-and-show-the-result-in-a-dvl/1635841/3 "2021-11-26T15:49:30Z")

</div>

> [@jared](#):
>
> This is equivalent a vLookup, right

You could say a **code-less vLookup** 🤭

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [November 26, 2021, 3:52pm UTC](https://community.thunkable.com/t/filter-google-sheet-data-and-show-the-result-in-a-dvl/1635841/4 "2021-11-26T15:52:50Z")

</div>

Nice use case and example here! How well does this work if 100 people want to complete different filtered lists at the same time.

ie Is this a scalable solution?

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [November 26, 2021, 3:59pm UTC](https://community.thunkable.com/t/filter-google-sheet-data-and-show-the-result-in-a-dvl/1635841/5 "2021-11-26T15:59:59Z")

</div>

If you are asking about multi-user operation, Then you will not be able to establish such a trick because Thunkable, in one way, does not allow dynamic change of `Data Source` to be able to give each user a session. In the other hand, Google sheet is a collaborative app which means it is built in a way that when you change a cell others in viewing the same sheet get a reflection of the change.

I created a `Google Apps Script` to give me a snapshot of the sheet as a JSON set to go around it. But that was a pure HTML/JavaScript/AppsScript project. I did not try it with Thunkable.

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [November 26, 2021, 4:06pm UTC](https://community.thunkable.com/t/filter-google-sheet-data-and-show-the-result-in-a-dvl/1635841/6 "2021-11-26T16:06:17Z")

</div>

Makes sense! And good points there!

A scaleable solution requires the use of filtering on the backend or in the client itself.

I find FB perfect for this but not easy for all to use. I’d love to set up some examples sometime soon.

Airtable has good filtering via the api also as does xano or backendless.

I’d love to see a filter by block for the firebase calls one day.

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [November 26, 2021, 4:14pm UTC](https://community.thunkable.com/t/filter-google-sheet-data-and-show-the-result-in-a-dvl/1635841/7 "2021-11-26T16:14:04Z")

</div>

> [@jared](#):
>
> Airtable has good filtering via the api

I made a similar trick for Airtable to perform filtering in the table side.

See this Airtable view that shows students in specific grade

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/6/76c5bc6b172e9e5f1208a0962791be91e9dac7c8.png)

The selected grade is stored in a separate table  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/c/4c52fde0e543922f29885fa51214082dcbb54128.png)

If I change it to another number, let’s say 5

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/3/5385faf54e65a6a0c0604d76ac78a6a4bee29add.png)

The view of the students table becomes:  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/0/50658bea5648253e48ad9613961b083b35c556d8.png)

Hope that help members in the community.

---

<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: [November 8, 2024, 1:13pm UTC](https://community.thunkable.com/t/filter-google-sheet-data-and-show-the-result-in-a-dvl/1635841/8 "2024-11-08T13:13:30Z")

</div>


