# Setting a daily number

**URL:** <https://community.glideapps.com/t/setting-a-daily-number/27167>\
**Category:** Ask for Help\
**Created:** [May 24, 2021, 4:01pm UTC](https://community.glideapps.com/t/setting-a-daily-number/27167 "2021-05-24T16:01:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tombaker](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/tombaker/32/25878_2.png) [@Tombaker](https://community.glideapps.com/u/Tombaker)\
**Post date:** [May 24, 2021, 4:01pm UTC](https://community.glideapps.com/t/setting-a-daily-number/27167/1 "2021-05-24T16:01:22Z")

</div>

Hi everyone,

Having a complete mind blank here, how could I give a user a set a number each day, so in my use case which is a networking app where the user can make 10 connections a day, I have part of the connection action to increment -1 and then if they hit zero the tab will disappear but I can’t think how to reset to 10 each day. I might kick myself when I hear the answer!

Thanks

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [May 24, 2021, 4:06pm UTC](https://community.glideapps.com/t/setting-a-daily-number/27167/2 "2021-05-24T16:06:12Z")

</div>

Are you writing a row for each connection? It might be easier to create a relation based on the current date to your sheet with the daily rows. Then create a rollup column to count the number of connections. Then set your condition based on that rollup. On the next day, the relation will not find any rows with the same date, so it will start over.

Otherwise, if the user is doing some sort of action prior to viewing the conditions, you could have a stored date and compare to todays date. if they are different then the action could reset the value and set the new date.

---

<div class="post-metadata">

**Author:** ![Tombaker](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/tombaker/32/25878_2.png) [@Tombaker](https://community.glideapps.com/u/Tombaker)\
**Post date:** [May 24, 2021, 4:20pm UTC](https://community.glideapps.com/t/setting-a-daily-number/27167/3 "2021-05-24T16:20:48Z")

</div>

Thanks @Jeff_Hager

---

<div class="post-metadata">

**Author:** ![NoCodeAndy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nocodeandy/32/62530_2.png) [@NoCodeAndy](https://community.glideapps.com/u/NoCodeAndy)\
**Post date:** [January 17, 2024, 4:52pm UTC](https://community.glideapps.com/t/setting-a-daily-number/27167/4 "2024-01-17T16:52:05Z")

</div>


