# Filtering in an avatar group

**URL:** <https://community.appfarm.io/t/filtering-in-an-avatar-group/471>\
**Category:** Ask the community\
**Tags:** ui, actions\
**Created:** [May 10, 2023, 12:17pm UTC](https://community.appfarm.io/t/filtering-in-an-avatar-group/471 "2023-05-10T12:17:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jemea](https://avatars.discourse-cdn.com/v4/letter/j/edb3f5/32.png) [@Jemea](https://community.appfarm.io/u/Jemea)\
**Post date:** [May 10, 2023, 12:17pm UTC](https://community.appfarm.io/t/filtering-in-an-avatar-group/471/1 "2023-05-10T12:17:35Z")

</div>

Hello,

I have an issue which might be a simple fix. I have an avatar group displaying the contributors to a message thread. On the avatar group, the images are being duplicated based on the messages; meaning if a user sends in 5 messages to that thread, their profile picture appears 5 times. I am trying to filter this to appear just once and I have not been able so far.

Can anyone guide me to where the filtering can be done?

---

<div class="post-metadata">

**Author:** ![MartinB](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/martinb/32/112_2.png) [@MartinB](https://community.appfarm.io/u/MartinB)\
**Post date:** [May 10, 2023, 1:44pm UTC](https://community.appfarm.io/t/filtering-in-an-avatar-group/471/2 "2023-05-10T13:44:41Z")

</div>

Hi!

I am not sure how your setup is but I am assuming that you have a data source “message” where _message_ has a user property? In the avatar group, instead of using the data source “messages”, you could use a data source with “Contributors (users)” that you filter to only display contributors that exist in the messages in the thread in context.

 ![screenshot](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/1X/ed37b9c9812635f31976dc261b8543fda75643cd.png)

---

<div class="post-metadata">

**Author:** ![Jemea](https://avatars.discourse-cdn.com/v4/letter/j/edb3f5/32.png) [@Jemea](https://community.appfarm.io/u/Jemea)\
**Post date:** [May 10, 2023, 1:52pm UTC](https://community.appfarm.io/t/filtering-in-an-avatar-group/471/3 "2023-05-10T13:52:39Z")

</div>

I will try this. Thank you for the help
