# Perform logic on related data (last order)

**URL:** <https://community.glideapps.com/t/perform-logic-on-related-data-last-order/29958>\
**Category:** Ask for Help\
**Created:** [August 4, 2021, 1:34am UTC](https://community.glideapps.com/t/perform-logic-on-related-data-last-order/29958 "2021-08-04T01:34:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ccloudbbb](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ccloudbbb/32/29819_2.png) [@ccloudbbb](https://community.glideapps.com/u/ccloudbbb)\
**Post date:** [August 4, 2021, 1:34am UTC](https://community.glideapps.com/t/perform-logic-on-related-data-last-order/29958/1 "2021-08-04T01:34:19Z")

</div>

Im trying to grab the date of the last order in the person table. Actually its volunteers who signed up for shifts. I want to know the last date they signed up for a shift, and perform some actions if they havent signed up for a shift in a few weeks.

Also, Im not using unique users, there is no login, but this application is being used privately by a small group of volunteers. Login credentials are too difficult for this group.

---

<div class="post-metadata">

**Author:** ![ccloudbbb](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ccloudbbb/32/29819_2.png) [@ccloudbbb](https://community.glideapps.com/u/ccloudbbb)\
**Post date:** [August 4, 2021, 1:39am UTC](https://community.glideapps.com/t/perform-logic-on-related-data-last-order/29958/2 "2021-08-04T01:39:18Z")

</div>

Nevermind. I figured out a rollup can do this. 😃

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [August 4, 2021, 2:06am UTC](https://community.glideapps.com/t/perform-logic-on-related-data-last-order/29958/3 "2021-08-04T02:06:19Z")

</div>

A single value \> last value in a relation would also do the trick if you’re catching the timestamp of the submission.

---

<div class="post-metadata">

**Author:** ![Lucas\_Pires](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lucas_pires/32/64863_2.png) [@Lucas\_Pires](https://community.glideapps.com/u/Lucas_Pires)\
**Post date:** [August 4, 2021, 12:37pm UTC](https://community.glideapps.com/t/perform-logic-on-related-data-last-order/29958/4 "2021-08-04T12:37:37Z")

</div>

I also use this one too ☝🏼

---

<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:51pm UTC](https://community.glideapps.com/t/perform-logic-on-related-data-last-order/29958/5 "2024-01-17T16:51:02Z")

</div>


