# Filter the most occurred items in list?

**URL:** <https://forum.dynamobim.com/t/filter-the-most-occurred-items-in-list/74279>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [March 12, 2022, 5:08pm UTC](https://forum.dynamobim.com/t/filter-the-most-occurred-items-in-list/74279 "2022-03-12T17:08:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![newshunhk](https://avatars.discourse-cdn.com/v4/letter/n/3bc359/32.png) [@newshunhk](https://forum.dynamobim.com/u/newshunhk)\
**Post date:** [March 12, 2022, 5:08pm UTC](https://forum.dynamobim.com/t/filter-the-most-occurred-items-in-list/74279/1 "2022-03-12T17:08:41Z")

</div>

hello…I want to remove the least occurred item (item 5 in list A, and item 5 in list B)  
is there a way to check the most occurred items and remove the rest?

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/c/dcb74f25dc776b8f979174c0f5369b43d1298b93.png)

---

<div class="post-metadata">

**Author:** ![Elie.Trad](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/elie.trad/32/110373_2.png) [@Elie.Trad](https://forum.dynamobim.com/u/Elie.Trad)\
**Post date:** [March 12, 2022, 6:04pm UTC](https://forum.dynamobim.com/t/filter-the-most-occurred-items-in-list/74279/2 "2022-03-12T18:04:37Z")

</div>

@newshunhk try to use Sort by key node.

---

<div class="post-metadata">

**Author:** ![AmolShah](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/amolshah/32/103244_2.png) [@AmolShah](https://forum.dynamobim.com/u/AmolShah)\
**Post date:** [March 12, 2022, 8:24pm UTC](https://forum.dynamobim.com/t/filter-the-most-occurred-items-in-list/74279/3 "2022-03-12T20:24:09Z")

</div>

@newshunhk You can try something like this:

 ![1](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/2/52c965fed29b80feb2133a93bcd7dd8fc18c4f4a.png)

---

<div class="post-metadata">

**Author:** ![newshunhk](https://avatars.discourse-cdn.com/v4/letter/n/3bc359/32.png) [@newshunhk](https://forum.dynamobim.com/u/newshunhk)\
**Post date:** [March 13, 2022, 1:30am UTC](https://forum.dynamobim.com/t/filter-the-most-occurred-items-in-list/74279/4 "2022-03-13T01:30:28Z")

</div>

thank you!
