# Is there a way to filter duplicates from an inline list?

**URL:** https://community.glideapps.com/t/is-there-a-way-to-filter-duplicates-from-an-inline-list/21270
**Category:** Ask for Help
**Created:** [January 16, 2021, 5:49pm UTC](https://community.glideapps.com/t/is-there-a-way-to-filter-duplicates-from-an-inline-list/21270 "2021-01-16T17:49:22Z")
**Posts on this page:** 20
**Page:** 2

<div class="post-metadata">

### Author: ![dmcrabby](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dmcrabby/32/19959_2.png) [@dmcrabby](https://community.glideapps.com/u/dmcrabby)
#### Post date: [January 24, 2021, 6:50pm UTC](https://community.glideapps.com/t/is-there-a-way-to-filter-duplicates-from-an-inline-list/21270/21 "2021-01-24T18:50:36Z")

</div>

That did work. Thanks Jeff. My only glitch now is when I am looking at their details card and see the office list below, that persons picture is there too. Not that it’s a big deal, which I am beginning to not mind, but how cold I omit that person from appearing in the office list when I am looking at their details card: to maintain the “Other People in this office” list without seeing them too?

---

<div class="post-metadata">

### Author: ![dmcrabby](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dmcrabby/32/19959_2.png) [@dmcrabby](https://community.glideapps.com/u/dmcrabby)
#### Post date: [January 24, 2021, 6:51pm UTC](https://community.glideapps.com/t/is-there-a-way-to-filter-duplicates-from-an-inline-list/21270/22 "2021-01-24T18:51:20Z")

</div>

Darren,  
That sounds amazing. I am glad my problem brought Jeff in with that solution for you too!

---

<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: [January 24, 2021, 7:03pm UTC](https://community.glideapps.com/t/is-there-a-way-to-filter-duplicates-from-an-inline-list/21270/23 "2021-01-24T19:03:12Z")

</div>

You should be able to filter the list using Screen Values where the name is not the name of the current contact being viewed.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/5/a5c7675d75915871ff4ff6e9384c979174d225ce.png)

---

<div class="post-metadata">

### Author: ![dmcrabby](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dmcrabby/32/19959_2.png) [@dmcrabby](https://community.glideapps.com/u/dmcrabby)
#### Post date: [January 24, 2021, 11:59pm UTC](https://community.glideapps.com/t/is-there-a-way-to-filter-duplicates-from-an-inline-list/21270/24 "2021-01-24T23:59:02Z")

</div>

Thank you Jeff. That makes so much sense. I truly enjoy learning these bits that allow me to re-evaluate my problem solving skills!

---

<div class="post-metadata">

### Author: ![Test\_Test](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/test_test/32/30930_2.png) [@Test\_Test](https://community.glideapps.com/u/Test_Test)
#### Post date: [December 31, 2021, 6:25am UTC](https://community.glideapps.com/t/is-there-a-way-to-filter-duplicates-from-an-inline-list/21270/25 "2021-12-31T06:25:03Z")

</div>

> [@Jeff\_Hager](#):
>
> change your relation to a multiple relation. Then instead of a lookup, create a Single Value column that uses the relation to return the Last RowID, which would be the most recent entry. Then change your If Then column to compare the row’s RowID to the Single Value column.

Hi Jeff,  
This solution looks great, but I couldn’t get it to work ☹  
I’d like to check if a client name is repeated, so we can put a warning text for the users to notice there is more than one client with the same exact name. I think that I did what you mentioned:

1. Relation column - client name to itself  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/6/0/60f69fd81853f11ecd8a0090ac91c2134eab4c74.png)

2. SV column - last ROW ID  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/0/80ca0bf519128d396f83fd1d9553a775aaf5b89c.png)

3. ITE column - current ROWID to SV column  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/2/82e24f3194130c0bfd8e49c42b090df09b0bef81.png)

What Have I missed?

---

<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: [December 31, 2021, 7:09am UTC](https://community.glideapps.com/t/is-there-a-way-to-filter-duplicates-from-an-inline-list/21270/26 "2021-12-31T07:09:23Z")

</div>

And what was the result? What you are showing looks OK if that is the intended result you want, although it might not apply to your particular situation. What is the problem you are running into? What is not working? Your current setup should mark each duplicate row as ‘true’, except for the last row within a same name, or any row that is not a duplicate. Last row names and non duplicate names will be false with the way you have set up your columns.

But, wouldn’t it be more beneficial for your use case if you kept the same relation, but got rid of the single value and IF columns and replaced them with a Rollup Count column instead? Then any name with a count greater than 1 would be a duplicated name.

---

<div class="post-metadata">

### Author: ![Test\_Test](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/test_test/32/30930_2.png) [@Test\_Test](https://community.glideapps.com/u/Test_Test)
#### Post date: [December 31, 2021, 8:29am UTC](https://community.glideapps.com/t/is-there-a-way-to-filter-duplicates-from-an-inline-list/21270/27 "2021-12-31T08:29:08Z")

</div>

> [@Jeff\_Hager](#):
>
> more beneficial for your use case if you kept the same relation, but got rid of the single value and IF columns and replaced them with a Rollup Count column instead? Then any name with a count greater than 1 would be a duplicated name.

Thanks, that works perfectly!

---

<div class="post-metadata">

### Author: ![Majestic\_Intern](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/majestic_intern/32/36814_2.png) [@Majestic\_Intern](https://community.glideapps.com/u/Majestic_Intern)
#### Post date: [November 2, 2022, 1:20am UTC](https://community.glideapps.com/t/is-there-a-way-to-filter-duplicates-from-an-inline-list/21270/28 "2022-11-02T01:20:18Z")

</div>

Hey, this actually worked great for me! Would you mind explaining the formula? It worked for me but I don’t really understand it.

---

<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: [November 3, 2022, 12:44am UTC](https://community.glideapps.com/t/is-there-a-way-to-filter-duplicates-from-an-inline-list/21270/29 "2022-11-03T00:44:07Z")

</div>

The logic goes like this:

For every cell in the range A2 to the end of column A, let’s call this cell A(x). If it is empty, return an empty value.

Else, count all cells that has the same value as cell A(x), and having its row number less than or equal to the current row we’re looking at.

---

<div class="post-metadata">

### Author: ![George\_Pillari](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/george_pillari/32/55971_2.png) [@George\_Pillari](https://community.glideapps.com/u/George_Pillari)
#### Post date: [April 24, 2023, 2:07pm UTC](https://community.glideapps.com/t/is-there-a-way-to-filter-duplicates-from-an-inline-list/21270/30 "2023-04-24T14:07:45Z")

</div>

I have a variation on this problem. I have an array column that is filled with other users who match any book on the current user’s book list. For a given user, there may be duplicate values in the array since other users may match on more than one book.

When I display a list based off the lookup and joined list from the array, I get duplicate users in the listing since they matched the current user on more than one book.

Is there a way to filter and only get the other users’ name once? Or do I need to redesign the underlying data?

Thank you for any help.

---

<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 24, 2023, 2:17pm UTC](https://community.glideapps.com/t/is-there-a-way-to-filter-duplicates-from-an-inline-list/21270/31 "2023-04-24T14:17:06Z")

</div>

You can try using the Unique Elements plugin column to eliminate duplicates from an array.

> **[Glide • Unique Elements column](https://www.glideapps.com/plugins/uniq)**
>
> Remove duplicate entries from an array

---

<div class="post-metadata">

### Author: ![George\_Pillari](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/george_pillari/32/55971_2.png) [@George\_Pillari](https://community.glideapps.com/u/George_Pillari)
#### Post date: [April 24, 2023, 3:15pm UTC](https://community.glideapps.com/t/is-there-a-way-to-filter-duplicates-from-an-inline-list/21270/32 "2023-04-24T15:15:55Z")

</div>

This works and the new field has no duplicates. But when I display a list from the new field, it has duplicates. Will keep playing with it.

Thank you

---

<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 24, 2023, 3:44pm UTC](https://community.glideapps.com/t/is-there-a-way-to-filter-duplicates-from-an-inline-list/21270/33 "2023-04-24T15:44:45Z")

</div>

Well, how are you displaying the list? Based on your description, I assumed you were creating a Joined List from that array, with maybe a carriage return as the delimiter, and then display it in a text or rich text component. My thought was to point the joined list at the new array created from the Unique Elements array column. If not, I guess I’m not clear on what you are trying to do.

---

<div class="post-metadata">

### Author: ![George\_Pillari](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/george_pillari/32/55971_2.png) [@George\_Pillari](https://community.glideapps.com/u/George_Pillari)
#### Post date: [April 24, 2023, 4:29pm UTC](https://community.glideapps.com/t/is-there-a-way-to-filter-duplicates-from-an-inline-list/21270/34 "2023-04-24T16:29:39Z")

</div>

One curveball in here that may be causing the problem. My array is a list of items the user has selected. I create a relation column that gives me the other users who also list those items on their profiles. (Other users can match on more than one product, so without the unique feature, I get multiple entries of a user name.) I build the array and unique joined list from the relation. The unique joined list looks good in the table, but still displays duplicates. I tried listings and text fields for display. Seems like the relation is causing the problem?

---

<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 24, 2023, 4:44pm UTC](https://community.glideapps.com/t/is-there-a-way-to-filter-duplicates-from-an-inline-list/21270/35 "2023-04-24T16:44:28Z")

</div>

I think I need to see some screenshots of the data and how your columns are configured, as well as how you are attempting to display it in the app. I think I’m missing some key details here.

---

<div class="post-metadata">

### Author: ![George\_Pillari](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/george_pillari/32/55971_2.png) [@George\_Pillari](https://community.glideapps.com/u/George_Pillari)
#### Post date: [April 24, 2023, 5:16pm UTC](https://community.glideapps.com/t/is-there-a-way-to-filter-duplicates-from-an-inline-list/21270/36 "2023-04-24T17:16:51Z")

</div>

![Screen Shot 2023-04-24 at 10.10.51 AM (2)](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/6/b/6b5d0edc529483eba565da555d1a8962baf23067.jpeg)  
Explanation of columns:

array17 creates an array of books from column 17, which is populated by the choice function  
unique17 uses the unique feature to eliminate duplicates from array17  
uniqueRelate uses the relation column to populate users who are connected to the books  
uniqueLookup pulls the users from uniqueRelate  
uniqueJoined pulls data from uniqueLookup

Thank you for any help

---

<div class="post-metadata">

### Author: ![Eric\_Penn](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/eric_penn/32/73888_2.png) [@Eric\_Penn](https://community.glideapps.com/u/Eric_Penn)
#### Post date: [April 24, 2023, 5:27pm UTC](https://community.glideapps.com/t/is-there-a-way-to-filter-duplicates-from-an-inline-list/21270/37 "2023-04-24T17:27:12Z")

</div>

The Unique Elements should be applied to the Lookup Column and also the Unique Elements should be the source of your joined list. So your flow should look like…

Lookup → Unique Elements → Joined List

---

<div class="post-metadata">

### Author: ![George\_Pillari](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/george_pillari/32/55971_2.png) [@George\_Pillari](https://community.glideapps.com/u/George_Pillari)
#### Post date: [April 24, 2023, 5:41pm UTC](https://community.glideapps.com/t/is-there-a-way-to-filter-duplicates-from-an-inline-list/21270/38 "2023-04-24T17:41:22Z")

</div>

Worked. Thank you both.

---

<div class="post-metadata">

### Author: ![George\_Pillari](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/george_pillari/32/55971_2.png) [@George\_Pillari](https://community.glideapps.com/u/George_Pillari)
#### Post date: [April 25, 2023, 2:01pm UTC](https://community.glideapps.com/t/is-there-a-way-to-filter-duplicates-from-an-inline-list/21270/39 "2023-04-25T14:01:32Z")

</div>

Well, I spoke too soon.

Array is created with list of the user’s books. Relation is created to match other users whose book list array intersects with the current user’s. If users intersect on more than one book, the user’s name shows up more than once. Lookup field applied to the array, then the unique elements field is applied (which eliminates duplicate, triplicate users). Joined List applied to unique elements and looks good.

When I do an inline list to see what other users match to the current user, I filter to include any user that “is included in” the joined list. Still getting duplicates.

Any ideas are welcome.

---

<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 25, 2023, 2:52pm UTC](https://community.glideapps.com/t/is-there-a-way-to-filter-duplicates-from-an-inline-list/21270/40 "2023-04-25T14:52:17Z")

</div>

I think we’ve gone full circle back to the original solution I provided in this thread.

> [@Is there a way to filter duplicates from an inline list?](https://community.glideapps.com/t/is-there-a-way-to-filter-duplicates-from-an-inline-list/21270/14):
>
> This is what I would do if you wanted to keep everything within glide. First I would recommend having a RowID which will give every row a unique value. This will become important in a little bit. Then I would identify a unique value for each contact, whether it’s a name, phone number, email address, or something else that you know will be in each duplicate row, but is still unique only for that specific person. Let’s assume Name for now. Create a self relation that links the contact’s Name …

That’s why I asked how you are displaying the list. Now it’s clear that you are using an inline list/collection to display that list. Since it sounds like you just want user names, you have two options.

- One is to follow my original solution to eliminate duplicate names from the list, then use the final IF column as a filter for your list/collection.
- The other option is to get your array of users from the lookup column, and then use that to create a relation to a separate table that only contains the user information instead of the table that logs who read what.

[Previous page](https://community.glideapps.com/t/is-there-a-way-to-filter-duplicates-from-an-inline-list/21270.md?page=1)

[Next page](https://community.glideapps.com/t/is-there-a-way-to-filter-duplicates-from-an-inline-list/21270.md?page=3)
