# List.UniqueItems Result

**URL:** <https://forum.dynamobim.com/t/list-uniqueitems-result/968>\
**Category:** Packages\
**Created:** [January 26, 2015, 4:12am UTC](https://forum.dynamobim.com/t/list-uniqueitems-result/968 "2015-01-26T04:12:25Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_Thorley](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@Mark\_Thorley](https://forum.dynamobim.com/u/Mark_Thorley)\
**Post date:** [January 26, 2015, 4:12am UTC](https://forum.dynamobim.com/t/list-uniqueitems-result/968/1 "2015-01-26T04:12:25Z")

</div>

To me list.uniqueitems doesn’t give the result I would expect, not sure what others views on this are. If you have a given list of repeated values I would expect unique items to list only those that show up once in the list (are unique). See example below. I would expect the result to be just b. Interested to hear others opinions on this.

---

<div class="post-metadata">

**Author:** ![Mark\_Thorley](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@Mark\_Thorley](https://forum.dynamobim.com/u/Mark_Thorley)\
**Post date:** [January 26, 2015, 4:12am UTC](https://forum.dynamobim.com/t/list-uniqueitems-result/968/2 "2015-01-26T04:12:56Z")

</div>

![Unique Items](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/5/5556baf770a2942bc9f056a5f5d9603f4f5942f7.png)Would help if I uploaded the image 🙂

---

<div class="post-metadata">

**Author:** ![Andreas\_Dieckmann](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andreas_dieckmann/32/365_2.png) [@Andreas\_Dieckmann](https://forum.dynamobim.com/u/Andreas_Dieckmann)\
**Post date:** [January 26, 2015, 6:24am UTC](https://forum.dynamobim.com/t/list-uniqueitems-result/968/3 "2015-01-26T06:24:53Z")

</div>

Hi Mark,

Actually I am very happy with the way List.UniqueItems works (in 0.6.3 there was no built-in node for this at all). Also, I think the term “unique list” in coding usually refers to this kind of command. I guess what you’d like is a node that counts (and maybe even filters by) the number of occurences of the members of a list. Maybe there’s an easier way to do this, but you could definitely do it this way:

![FilterByOccurences](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/c/c251ad70cfb06ac3c2b87dc9d1044a6a95a03bde.png)

---

<div class="post-metadata">

**Author:** ![Mark\_Thorley](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@Mark\_Thorley](https://forum.dynamobim.com/u/Mark_Thorley)\
**Post date:** [January 26, 2015, 8:06am UTC](https://forum.dynamobim.com/t/list-uniqueitems-result/968/4 "2015-01-26T08:06:26Z")

</div>

Hi Andreas,

Yes I had a similar work around, maybe I’ll wrap it up in a custom node. Personally I think it seems strange not to have a node that does that in the built in library, one for your clockwork package 😉

---

<div class="post-metadata">

**Author:** ![Konrad\_K\_Sobon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/konrad_k_sobon/32/8838_2.png) [@Konrad\_K\_Sobon](https://forum.dynamobim.com/u/Konrad_K_Sobon)\
**Post date:** [January 26, 2015, 8:57am UTC](https://forum.dynamobim.com/t/list-uniqueitems-result/968/5 "2015-01-26T08:57:01Z")

</div>

I agree with Andreas. The name might be a little misleading. Maybe it might be worth changing it to List.ObjectTypes or something along the lines. What it does though, makes perfect sense and in my experience the operation that you are performing is actually far less common than what the List.UniqueItems does. Just a thought.

---

<div class="post-metadata">

**Author:** ![Mark\_Thorley](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@Mark\_Thorley](https://forum.dynamobim.com/u/Mark_Thorley)\
**Post date:** [January 26, 2015, 9:11am UTC](https://forum.dynamobim.com/t/list-uniqueitems-result/968/6 "2015-01-26T09:11:25Z")

</div>

Fair enough Konrad, its good to get your opinions. As part of a training session I did for people at work it seems there are multiple nodes related to lists that are repeated elsewhere. As an example List.Count does the same as Count, List.Join does the same as Concat. The latter of the two work with elements as well rather than just lists but it seems silly in these particular cases to have the List nodes, I can only think it helps in the search bar?

---

<div class="post-metadata">

**Author:** ![Andreas\_Dieckmann](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andreas_dieckmann/32/365_2.png) [@Andreas\_Dieckmann](https://forum.dynamobim.com/u/Andreas_Dieckmann)\
**Post date:** [January 26, 2015, 9:17am UTC](https://forum.dynamobim.com/t/list-uniqueitems-result/968/7 "2015-01-26T09:17:59Z")

</div>

@ Mark - I have indeed added this to the next batch of nodes for Clockwork. Will upload a new package version later this week.

@ Konrad - Although I have gotten used to the name, I think something like List.RemoveDuplicates may be more useful for new users when searching the node library. Although, to be fair, List.UniqueItems already shows up as a result when you search for “duplicate”.

---

<div class="post-metadata">

**Author:** ![jpTrujilloLevy](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jptrujillolevy/32/13800_2.png) [@jpTrujilloLevy](https://forum.dynamobim.com/u/jpTrujilloLevy)\
**Post date:** [September 25, 2016, 10:33pm UTC](https://forum.dynamobim.com/t/list-uniqueitems-result/968/8 "2016-09-25T22:33:02Z")

</div>

Hi Andreas

I think this solution can be useful for me. Could you please reload the image with larger resolution to explore it?  
Thanks

---

<div class="post-metadata">

**Author:** ![Andreas\_Dieckmann](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andreas_dieckmann/32/365_2.png) [@Andreas\_Dieckmann](https://forum.dynamobim.com/u/Andreas_Dieckmann)\
**Post date:** [September 26, 2016, 6:21am UTC](https://forum.dynamobim.com/t/list-uniqueitems-result/968/9 "2016-09-26T06:21:59Z")

</div>

@jpTrujilloLevy - This is a post from the old forum so there’s no way to retrieve the images in a higher resolution, but the node I added to Clockwork at the time was most likely List.CountOccurences which gives you a) a list of unique items in your input list and b) a count for each of those unique items.

---

<div class="post-metadata">

**Author:** ![Andrew\_Hannell](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andrew_hannell/32/103315_2.png) [@Andrew\_Hannell](https://forum.dynamobim.com/u/Andrew_Hannell)\
**Post date:** [September 26, 2016, 8:37am UTC](https://forum.dynamobim.com/t/list-uniqueitems-result/968/10 "2016-09-26T08:37:16Z")

</div>

Original article here:  
[http://dynamobim.org/forums/topic/list-uniqueitems-result/](http://dynamobim.org/forums/topic/list-uniqueitems-result/)
