# Rollup function not working for select dropdown menu

**URL:** <https://community.weweb.io/t/rollup-function-not-working-for-select-dropdown-menu/8997>\
**Category:** How do I?\
**Tags:** select\
**Created:** [June 7, 2024, 7:02am UTC](https://community.weweb.io/t/rollup-function-not-working-for-select-dropdown-menu/8997 "2024-06-07T07:02:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![poyraz96](https://avatars.discourse-cdn.com/v4/letter/p/e95f7d/32.png) [@poyraz96](https://community.weweb.io/u/poyraz96)\
**Post date:** [June 7, 2024, 7:02am UTC](https://community.weweb.io/t/rollup-function-not-working-for-select-dropdown-menu/8997/1 "2024-06-07T07:02:17Z")

</div>

I have a table of Truck Driver information where i am trying to use a select dropdown menu to filter the table using the driver name. I am using Airtable as a backend and receiving all the data and its being rendered on the front end properly:

 ![Screenshot 2024-06-06 205200](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/8/89f867f3d8cda5d1dbd237378d05f12fde1cb1a6.png)

As seen in the dropdown, one driver is rendered 3 times. But i would like to just display a driver name once so i a user can filter the table by driver name.

I’ve followed this video: [https://youtu.be/8e3-qvGb1ms](https://youtu.be/8e3-qvGb1ms) and tried to use the `rollup()` function but nothing is being displayed

`rollup(data.data, 'Driver', 'distinct')` doesn’t work

Is there a bug in weweb where rollup does not work anymore? I double checked if something was wrong with my backend data but it looks like the front end is receiving all the data properly.

Any advice?

---

<div class="post-metadata">

**Author:** ![luka](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/luka/32/1571_2.png) [@luka](https://community.weweb.io/u/luka)\
**Post date:** [June 17, 2024, 7:19am UTC](https://community.weweb.io/t/rollup-function-not-working-for-select-dropdown-menu/8997/2 "2024-06-17T07:19:01Z")

</div>

The function works just fine for me, can you show us the data you receive from airtable in weweb and also the screenshot of the function?

---

<div class="post-metadata">

**Author:** ![poyraz96](https://avatars.discourse-cdn.com/v4/letter/p/e95f7d/32.png) [@poyraz96](https://community.weweb.io/u/poyraz96)\
**Post date:** [July 2, 2024, 3:57am UTC](https://community.weweb.io/t/rollup-function-not-working-for-select-dropdown-menu/8997/3 "2024-07-02T03:57:55Z")

</div>

Hi actually got it to work!
