# Make list group by Vector-X

**URL:** <https://forum.dynamobim.com/t/make-list-group-by-vector-x/76663>\
**Category:** Lists-Logic\
**Tags:** python, dynamo\
**Created:** [May 18, 2022, 10:19am UTC](https://forum.dynamobim.com/t/make-list-group-by-vector-x/76663 "2022-05-18T10:19:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![robert12546358](https://avatars.discourse-cdn.com/v4/letter/r/c5a1d2/32.png) [@robert12546358](https://forum.dynamobim.com/u/robert12546358)\
**Post date:** [May 18, 2022, 10:19am UTC](https://forum.dynamobim.com/t/make-list-group-by-vector-x/76663/1 "2022-05-18T10:19:24Z")

</div>

Hi, all

I want to make group as per below image. i tried **List.GroupByFunction.** but not make it 4 group.

i want use vector-x for make it group.

please suggest to me.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/4/e419ae482700e40b984fef699decfd61fe400556.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:** [May 18, 2022, 10:59am UTC](https://forum.dynamobim.com/t/make-list-group-by-vector-x/76663/2 "2022-05-18T10:59:16Z")

</div>

@robert12546358 try GroupByKey:

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

---

<div class="post-metadata">

**Author:** ![robert12546358](https://avatars.discourse-cdn.com/v4/letter/r/c5a1d2/32.png) [@robert12546358](https://forum.dynamobim.com/u/robert12546358)\
**Post date:** [May 18, 2022, 11:01am UTC](https://forum.dynamobim.com/t/make-list-group-by-vector-x/76663/3 "2022-05-18T11:01:39Z")

</div>

Not working. ☹ ☹ ☹

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/2/b2971a8bfecbb585a2d2e44f5c1cc571722340c9.png)

---

<div class="post-metadata">

**Author:** ![Daan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daan/32/82246_2.png) [@Daan](https://forum.dynamobim.com/u/Daan)\
**Post date:** [May 18, 2022, 11:12am UTC](https://forum.dynamobim.com/t/make-list-group-by-vector-x/76663/4 "2022-05-18T11:12:11Z")

</div>

Hi @robert12546358 ,

Have you tried rounding your Vector.X doubles?

---

<div class="post-metadata">

**Author:** ![robert12546358](https://avatars.discourse-cdn.com/v4/letter/r/c5a1d2/32.png) [@robert12546358](https://forum.dynamobim.com/u/robert12546358)\
**Post date:** [May 18, 2022, 11:17am UTC](https://forum.dynamobim.com/t/make-list-group-by-vector-x/76663/5 "2022-05-18T11:17:35Z")

</div>

Thanks @Daan it’s working. 👍 👍 👍

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/b/eb9003971d960671ec4d019d0af9fe0a7dc0bcc9.png)
