# Calculations with every new submission

**URL:** https://community.glideapps.com/t/calculations-with-every-new-submission/6567
**Category:** Ask for Help
**Created:** [April 7, 2020, 4:34pm UTC](https://community.glideapps.com/t/calculations-with-every-new-submission/6567 "2020-04-07T16:34:34Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jesschrist](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jesschrist/32/86_2.png) [@jesschrist](https://community.glideapps.com/u/jesschrist)
#### Post date: [April 7, 2020, 4:34pm UTC](https://community.glideapps.com/t/calculations-with-every-new-submission/6567/1 "2020-04-07T16:34:34Z")

</div>

i have a star rating system in an app. the owner wants an average for all ratings submitted for each item. How do I separate the average by item and set to recalculate with every new submission

---

<div class="post-metadata">

### Author: ![david](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/david/32/62831_2.png) [@david](https://community.glideapps.com/u/david)
#### Post date: [April 7, 2020, 5:17pm UTC](https://community.glideapps.com/t/calculations-with-every-new-submission/6567/2 "2020-04-07T17:17:23Z")

</div>

Create a relation from each item to all of its ratings, then use a roll-up on that relation to calculate the average rating per item.
