# Help with database

**URL:** https://community.thunkable.com/t/help-with-database/2740588
**Category:** Questions about Thunkable X
**Created:** [December 6, 2023, 2:56am UTC](https://community.thunkable.com/t/help-with-database/2740588 "2023-12-06T02:56:35Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![nascentaa0obfo](https://avatars.discourse-cdn.com/v4/letter/n/f08c70/32.png) [@nascentaa0obfo](https://community.thunkable.com/u/nascentaa0obfo)
#### Post date: [December 6, 2023, 2:56am UTC](https://community.thunkable.com/t/help-with-database/2740588/1 "2023-12-06T02:56:35Z")

</div>

Is there any way to get the largest value from a google sheets using thunkable. Could someone post a picture of this?

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [December 6, 2023, 5:45am UTC](https://community.thunkable.com/t/help-with-database/2740588/2 "2023-12-06T05:45:44Z")

</div>

I recommend you use a Google Sheet formula and then just access the value it generates from within Thunkable.

---

<div class="post-metadata">

### Author: ![nascentaa0obfo](https://avatars.discourse-cdn.com/v4/letter/n/f08c70/32.png) [@nascentaa0obfo](https://community.thunkable.com/u/nascentaa0obfo)
#### Post date: [December 7, 2023, 1:19am UTC](https://community.thunkable.com/t/help-with-database/2740588/4 "2023-12-07T01:19:47Z")

</div>

The problem here is that the code should only deploy whenever a button is clicked.

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [December 7, 2023, 4:03am UTC](https://community.thunkable.com/t/help-with-database/2740588/5 "2023-12-07T04:03:13Z")

</div>

What’s the difference? The cell in the Google Sheet can hold the largest value and you can update it from Thunkable whenever the button is clicked.

It’s possible to create a “largest value” function in Thunkable. If you really need to, you can get started and post a screenshot of what you’ve tried. I would first make the numbers into a list (using the list of values block) and then sort the list numerically and then get the first (or last) value.

---

<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: [March 6, 2024, 4:04am UTC](https://community.thunkable.com/t/help-with-database/2740588/6 "2024-03-06T04:04:12Z")

</div>

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