# Add Winner Increment Number to Profile

**URL:** https://community.glideapps.com/t/add-winner-increment-number-to-profile/72621
**Category:** Ask for Help
**Created:** [April 16, 2024, 11:52am UTC](https://community.glideapps.com/t/add-winner-increment-number-to-profile/72621 "2024-04-16T11:52:07Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Emmett\_M](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/emmett_m/32/60683_2.png) [@Emmett\_M](https://community.glideapps.com/u/Emmett_M)
#### Post date: [April 16, 2024, 11:52am UTC](https://community.glideapps.com/t/add-winner-increment-number-to-profile/72621/1 "2024-04-16T11:52:07Z")

</div>

So I have a battle between 2 users , users vote and when the timer runs down the person with most votes is the winner. This is done using If/Else columns but I need to increment a number of wins to that users profile.

How can I 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: [April 16, 2024, 11:16pm UTC](https://community.glideapps.com/t/add-winner-increment-number-to-profile/72621/2 "2024-04-16T23:16:58Z")

</div>

How long is the timer? You can’t do time-based actions for now, but I’m curious if the timer is short enough that a wait module can work.

---

<div class="post-metadata">

### Author: ![Emmett\_M](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/emmett_m/32/60683_2.png) [@Emmett\_M](https://community.glideapps.com/u/Emmett_M)
#### Post date: [April 17, 2024, 8:43am UTC](https://community.glideapps.com/t/add-winner-increment-number-to-profile/72621/3 "2024-04-17T08:43:50Z")

</div>

I have it at 60 mins now…but nothing set in stone…I thought about the wait for condition but didnt try it yet. What is the max seconds allowed do we know?

---

<div class="post-metadata">

### Author: ![Emmett\_M](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/emmett_m/32/60683_2.png) [@Emmett\_M](https://community.glideapps.com/u/Emmett_M)
#### Post date: [April 17, 2024, 9:30am UTC](https://community.glideapps.com/t/add-winner-increment-number-to-profile/72621/4 "2024-04-17T09:30:42Z")

</div>

So this works fine and then I have a component to show the winner once time remaining is less than 0. I need to be able to increment a number on only the winners profile which is the hard part

 ![Screenshot 2024-04-17 at 10.28.45](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/3/43a60a6bcd700dda604f3de932dca2d38eb41f95.png)

---

<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: [April 17, 2024, 11:37am UTC](https://community.glideapps.com/t/add-winner-increment-number-to-profile/72621/5 "2024-04-17T11:37:43Z")

</div>

Only things I can think of

- Create a relation and rollup in the user table pointing to the battle table to automatically count the wins.
- Create a button that performance an Increment action that someone clicks after the battle is done.

---

<div class="post-metadata">

### Author: ![Emmett\_M](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/emmett_m/32/60683_2.png) [@Emmett\_M](https://community.glideapps.com/u/Emmett_M)
#### Post date: [April 17, 2024, 11:41am UTC](https://community.glideapps.com/t/add-winner-increment-number-to-profile/72621/6 "2024-04-17T11:41:06Z")

</div>

Yes , I just added the button option for the winner and seems to work fine. I’ll double back and try the rollup option though

---

<div class="post-metadata">

### Author: ![Emmett\_M](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/emmett_m/32/60683_2.png) [@Emmett\_M](https://community.glideapps.com/u/Emmett_M)
#### Post date: [April 18, 2024, 11:20am UTC](https://community.glideapps.com/t/add-winner-increment-number-to-profile/72621/7 "2024-04-18T11:20:09Z")

</div>

What is the best way to grab the wins from the Profile table? My action at the moment is the user “adds to victory wall & increment profile wins” but I cant use this number for a leaderboard because obviously there is a row owner in the use column.

Rollup to the wins in the profile table gives me all the wins figures , not just each users.

---

<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: [April 18, 2024, 11:55am UTC](https://community.glideapps.com/t/add-winner-increment-number-to-profile/72621/8 "2024-04-18T11:55:48Z")

</div>

You have to decide if Row Owners is important in your user case. Does the profiles table need to be secure and protected from other users…especially if the whole point is to have public battles between users? If you don’t need Row Owners, then just remove it. If you do need it, then you probably need another table without row owners and only minimal info for each user that is participating in a battle.

---

<div class="post-metadata">

### Author: ![Emmett\_M](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/emmett_m/32/60683_2.png) [@Emmett\_M](https://community.glideapps.com/u/Emmett_M)
#### Post date: [April 18, 2024, 11:58am UTC](https://community.glideapps.com/t/add-winner-increment-number-to-profile/72621/9 "2024-04-18T11:58:22Z")

</div>

I guess theres no need to keep the profile private. I’m just so used to that approach from my other apps. A simple but effective solution. Thanks for twigging my brain today 🙂
