# Struggling with Increments

**URL:** <https://community.glideapps.com/t/struggling-with-increments/32602>\
**Category:** Ask for Help\
**Created:** [October 3, 2021, 7:57pm UTC](https://community.glideapps.com/t/struggling-with-increments/32602 "2021-10-03T19:57:56Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anthony\_Murray](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/anthony_murray/32/3475_2.png) [@Anthony\_Murray](https://community.glideapps.com/u/Anthony_Murray)\
**Post date:** [October 3, 2021, 7:57pm UTC](https://community.glideapps.com/t/struggling-with-increments/32602/1 "2021-10-03T19:57:56Z")

</div>

Hi All. Currently working on an app for a friend. Based on fundraising traditional coupon books they are looking for a coupon app with BOGOF offers etc. from local suppliers to be used by customers in support of their local school. So the initial layout is fine and glide works well. The customer will show the redeem coupon to the business on screen via a component button push. This coupon is redeemed and I’m incrementing the number of coupons by the business to hide the component button if it has already been used (user-specific columns). So far so good… What we would like to do is so the value of the savings by adding up all of the coupons redeemed. We have assigned each coupon a value and would like to have an amount on the profile screen but I can’t see to get it to work! Is this possible or has anybody a similar project that they’ve worked on? I’m stumped.

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [October 3, 2021, 8:11pm UTC](https://community.glideapps.com/t/struggling-with-increments/32602/2 "2021-10-03T20:11:54Z")

</div>

Is the amount user specific as well or did you want an amount that takes into account ALL coupons redeemed by all users?

---

<div class="post-metadata">

**Author:** ![Anthony\_Murray](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/anthony_murray/32/3475_2.png) [@Anthony\_Murray](https://community.glideapps.com/u/Anthony_Murray)\
**Post date:** [October 3, 2021, 8:55pm UTC](https://community.glideapps.com/t/struggling-with-increments/32602/3 "2021-10-03T20:55:36Z")

</div>

Hi Robert. Thanks for getting back. Yes ideally it would be per user. Not a deal breaker but a nice to have if its not going to impact too much on my row allowance!

---

<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:** [October 3, 2021, 11:16pm UTC](https://community.glideapps.com/t/struggling-with-increments/32602/4 "2021-10-03T23:16:55Z")

</div>

If you’re using a number user-specific column to flag which coupon has been used, I assume you can do it like this.

Create an If Then Else column in the Coupons sheet. If Used equals 1 then Coupon Value, else 0.

Go back to the Users sheet, create a rollup pointing to the Coupons sheet, specifically the ITE column above, and sum it.

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [October 4, 2021, 11:50am UTC](https://community.glideapps.com/t/struggling-with-increments/32602/5 "2021-10-04T11:50:18Z")

</div>

Yep. This ☝

---

<div class="post-metadata">

**Author:** ![Anthony\_Murray](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/anthony_murray/32/3475_2.png) [@Anthony\_Murray](https://community.glideapps.com/u/Anthony_Murray)\
**Post date:** [October 4, 2021, 2:44pm UTC](https://community.glideapps.com/t/struggling-with-increments/32602/6 "2021-10-04T14:44:58Z")

</div>

Thanks @Robert_Petitto and @ThinhDinh. Still stumped. For some reason on the User tab when I bring the value across using the Sum it brings it across for all 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:** [October 4, 2021, 2:59pm UTC](https://community.glideapps.com/t/struggling-with-increments/32602/7 "2021-10-04T14:59:27Z")

</div>

I should be a unique experience for each user. Have you previewed as different users to see if the SUM changes?

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [October 4, 2021, 4:10pm UTC](https://community.glideapps.com/t/struggling-with-increments/32602/8 "2021-10-04T16:10:47Z")

</div>

In the data editor or in the app itself? You may see it visualized like that in the Data Editor, but as long as the rollup is pointing to a user specific column, it will be different for each user.

---

<div class="post-metadata">

**Author:** ![Anthony\_Murray](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/anthony_murray/32/3475_2.png) [@Anthony\_Murray](https://community.glideapps.com/u/Anthony_Murray)\
**Post date:** [October 4, 2021, 8:49pm UTC](https://community.glideapps.com/t/struggling-with-increments/32602/9 "2021-10-04T20:49:56Z")

</div>

Hi @Jeff_Hager, @Robert_Petitto @ThinhDinh. Attached are my struggles! Incrementing with a button component. I’m sure it’s something obvious so thanks for your efforts and replies.

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/4/c40ef58c63b7ec3f014f8faff4d72d0f2f779f33.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/3/3/3396fae2f63fd8a926b5b69567fed130f1c8af85.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/1/a1f4663f6d41eb8cce38e305e2dda57db51a8bcd.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/b/ab34fb7d98389a1b16ed948a7b7e353995185626.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:** [October 4, 2021, 9:19pm UTC](https://community.glideapps.com/t/struggling-with-increments/32602/10 "2021-10-04T21:19:01Z")

</div>

It’s hard to tell for sure, but I doesn’t appear that you have any user specific columns in your Coupons sheet, so yes it’s going to accumulate for all users. You need to create a new column that is user specific and that will be the column that you increment and rollup against to get a unique count for each user.

---

<div class="post-metadata">

**Author:** ![Anthony\_Murray](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/anthony_murray/32/3475_2.png) [@Anthony\_Murray](https://community.glideapps.com/u/Anthony_Murray)\
**Post date:** [October 5, 2021, 7:10pm UTC](https://community.glideapps.com/t/struggling-with-increments/32602/11 "2021-10-05T19:10:06Z")

</div>

Mmm. It seems that it won’t allow User Specific (If\>Then\>Else or anything else) outside of basic column types).?

---

<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:** [October 5, 2021, 7:24pm UTC](https://community.glideapps.com/t/struggling-with-increments/32602/12 "2021-10-05T19:24:24Z")

</div>

If an IF column refers to a user specific column, then the results of that IF column will also be user specific. Computed columns don’t need to to be specified as user specific or not. They are computed on the user’s device and don’t actually store any values. Basic columns store values and those are the ones that you can specify as user specific or not when you create them. If a basic column is not user specific, then it can only hold one value. If a basic is user specific then it will hold a different value for each individual user.

---

<div class="post-metadata">

**Author:** ![Anthony\_Murray](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/anthony_murray/32/3475_2.png) [@Anthony\_Murray](https://community.glideapps.com/u/Anthony_Murray)\
**Post date:** [October 5, 2021, 7:58pm UTC](https://community.glideapps.com/t/struggling-with-increments/32602/13 "2021-10-05T19:58:56Z")

</div>

@Jeff_Hager Thank you so much for your patience. It’s working. Focusing on the coupon page too much I’m afraid. So my solution was to tie the component value (custom action which reduces the total number of coupons, hides the redeem button) and incremented to a User specific column on the coupon page \> if. then.else (to locate price) \> roll up on User profile. Perfect and thanks again @Jeff_Hager @Robert_Petitto and @ThinhDinh

---

<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:50pm UTC](https://community.glideapps.com/t/struggling-with-increments/32602/14 "2024-01-17T16:50:05Z")

</div>


