# Number of people who have bookmarked an establishment

**URL:** https://community.glideapps.com/t/number-of-people-who-have-bookmarked-an-establishment/35737
**Category:** Ask for Help
**Created:** [December 9, 2021, 2:30pm UTC](https://community.glideapps.com/t/number-of-people-who-have-bookmarked-an-establishment/35737 "2021-12-09T14:30:16Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Thomas\_Siegwald](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thomas_siegwald/32/34970_2.png) [@Thomas\_Siegwald](https://community.glideapps.com/u/Thomas_Siegwald)
#### Post date: [December 9, 2021, 2:30pm UTC](https://community.glideapps.com/t/number-of-people-who-have-bookmarked-an-establishment/35737/1 "2021-12-09T14:30:16Z")

</div>

Hello everyone, I have a small, very small question.

I have created an app that lists the bars in my city, users can bookmark these bars to see in another view their events and news.

Is it possible to retrieve the number of users who have bookmarked this bar?

Thanks in advance 🙂  
Thomas

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [December 9, 2021, 2:35pm UTC](https://community.glideapps.com/t/number-of-people-who-have-bookmarked-an-establishment/35737/2 "2021-12-09T14:35:08Z")

</div>

Yes, probably. It depends on how these “bookmarks” are being saved. What type of columns are they being saved to?

If they are user specific columns, then the answer is no.

Otherwise, yes it’s possible and the method will depend on the type of column and how your tables are structured. But ultimately, you will need a [rollup column](https://docs.glideapps.com/all/reference/data-editor/computed-columns/rollup).

---

<div class="post-metadata">

### Author: ![Thomas\_Siegwald](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thomas_siegwald/32/34970_2.png) [@Thomas\_Siegwald](https://community.glideapps.com/u/Thomas_Siegwald)
#### Post date: [December 9, 2021, 2:36pm UTC](https://community.glideapps.com/t/number-of-people-who-have-bookmarked-an-establishment/35737/3 "2021-12-09T14:36:32Z")

</div>

I’m just using the native favorites function, so it’s actually a specific column ☹  
Sad news !

I will look into changing the system!

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [December 9, 2021, 2:40pm UTC](https://community.glideapps.com/t/number-of-people-who-have-bookmarked-an-establishment/35737/4 "2021-12-09T14:40:09Z")

</div>

Have a read of the below - very similar use case as yours…

> [@Empty screen + custom segment picker](https://community.glideapps.com/t/empty-screen-custom-segment-picker/35607/7):
>
> Yes, it’s possible. But you’ll need to change the components that you are currently using for “Liking” items and indicating that they’re already purchased. And you’ll also need some extra logic. I’ll explain why. What you’ll need to do is create two date/time user specific columns - one for “Liked At” and one for “Purchased At”. It’s important that these columns are user specific, as the dates will be different for every user. Now when a user “likes” an item, or when they mark it as purchase…

What you will probably need to do is implement your own “Like” function, with 2 columns in your Establishments table:

- A user specific boolean column to hold each users “Like”
- A number column to use as a global counter for the number of likes for each establishment

You’ll need to use a component that you can attach an action to (similar to how I described in the above), and when a user “Likes” an establishment, your action should do two things:

- Set the user specific column to true
- Increment the counter by 1

You might want to implement additional logic to prevent users from “liking” an establishment multiple times and blowing out the counter.

---

<div class="post-metadata">

### Author: ![Thomas\_Siegwald](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thomas_siegwald/32/34970_2.png) [@Thomas\_Siegwald](https://community.glideapps.com/u/Thomas_Siegwald)
#### Post date: [December 9, 2021, 2:44pm UTC](https://community.glideapps.com/t/number-of-people-who-have-bookmarked-an-establishment/35737/5 "2021-12-09T14:44:59Z")

</div>

Ah, thank you, I will check this post !
