# Combined in the hierarchy of the same list

**URL:** <https://forum.dynamobim.com/t/combined-in-the-hierarchy-of-the-same-list/58156>\
**Category:** Lists-Logic\
**Tags:** dynamo\
**Created:** [December 9, 2020, 2:15pm UTC](https://forum.dynamobim.com/t/combined-in-the-hierarchy-of-the-same-list/58156 "2020-12-09T14:15:01Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![jj06jj](https://avatars.discourse-cdn.com/v4/letter/j/87869e/32.png) [@jj06jj](https://forum.dynamobim.com/u/jj06jj)\
**Post date:** [December 9, 2020, 2:15pm UTC](https://forum.dynamobim.com/t/combined-in-the-hierarchy-of-the-same-list/58156/1 "2020-12-09T14:15:01Z")

</div>

How can two lists like the one on the left be combined to create a list like the one on the right?

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

---

<div class="post-metadata">

**Author:** ![\_Vijay](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/_vijay/32/91307_2.png) [@\_Vijay](https://forum.dynamobim.com/u/_Vijay)\
**Post date:** [December 9, 2020, 2:28pm UTC](https://forum.dynamobim.com/t/combined-in-the-hierarchy-of-the-same-list/58156/2 "2020-12-09T14:28:59Z")

</div>

![List](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/6/4681354773234c1382d42e7dc689ff9263e29413.png)

---

<div class="post-metadata">

**Author:** ![jj06jj](https://avatars.discourse-cdn.com/v4/letter/j/87869e/32.png) [@jj06jj](https://forum.dynamobim.com/u/jj06jj)\
**Post date:** [December 9, 2020, 2:33pm UTC](https://forum.dynamobim.com/t/combined-in-the-hierarchy-of-the-same-list/58156/3 "2020-12-09T14:33:31Z")

</div>

That way, the list hierarchy will be broken.

---

<div class="post-metadata">

**Author:** ![khuzaimah.ElecEng](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/khuzaimah.eleceng/32/92768_2.png) [@khuzaimah.ElecEng](https://forum.dynamobim.com/u/khuzaimah.ElecEng)\
**Post date:** [December 9, 2020, 2:37pm UTC](https://forum.dynamobim.com/t/combined-in-the-hierarchy-of-the-same-list/58156/4 "2020-12-09T14:37:49Z")

</div>

hi  
transpose twice

 ![TRANS](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/4/3458f68ca37ad69d1062883db2a0bca2713f862b.png)

---

<div class="post-metadata">

**Author:** ![jj06jj](https://avatars.discourse-cdn.com/v4/letter/j/87869e/32.png) [@jj06jj](https://forum.dynamobim.com/u/jj06jj)\
**Post date:** [December 9, 2020, 3:15pm UTC](https://forum.dynamobim.com/t/combined-in-the-hierarchy-of-the-same-list/58156/5 "2020-12-09T15:15:33Z")

</div>

If the hierarchy of the list of input values changes, is there a way it can be applied to it?

---

<div class="post-metadata">

**Author:** ![khuzaimah.ElecEng](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/khuzaimah.eleceng/32/92768_2.png) [@khuzaimah.ElecEng](https://forum.dynamobim.com/u/khuzaimah.ElecEng)\
**Post date:** [December 9, 2020, 3:21pm UTC](https://forum.dynamobim.com/t/combined-in-the-hierarchy-of-the-same-list/58156/6 "2020-12-09T15:21:00Z")

</div>

it is all depend on the input, but basically try change levels on Transpose node L1,L2 …etc

---

<div class="post-metadata">

**Author:** ![jj06jj](https://avatars.discourse-cdn.com/v4/letter/j/87869e/32.png) [@jj06jj](https://forum.dynamobim.com/u/jj06jj)\
**Post date:** [December 9, 2020, 3:25pm UTC](https://forum.dynamobim.com/t/combined-in-the-hierarchy-of-the-same-list/58156/7 "2020-12-09T15:25:22Z")

</div>

I’m assuming execution with DynamoPlayer, so I don’t want to specify the hierarchy as much as possible …

---

<div class="post-metadata">

**Author:** ![khuzaimah.ElecEng](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/khuzaimah.eleceng/32/92768_2.png) [@khuzaimah.ElecEng](https://forum.dynamobim.com/u/khuzaimah.ElecEng)\
**Post date:** [December 9, 2020, 3:27pm UTC](https://forum.dynamobim.com/t/combined-in-the-hierarchy-of-the-same-list/58156/8 "2020-12-09T15:27:23Z")

</div>

i suggest to list and flatten the main input at first of your script , so that you guarantee what the hierarchy it will be all the time

---

<div class="post-metadata">

**Author:** ![jj06jj](https://avatars.discourse-cdn.com/v4/letter/j/87869e/32.png) [@jj06jj](https://forum.dynamobim.com/u/jj06jj)\
**Post date:** [December 9, 2020, 3:30pm UTC](https://forum.dynamobim.com/t/combined-in-the-hierarchy-of-the-same-list/58156/9 "2020-12-09T15:30:50Z")

</div>

I need to maintain the hierarchy as it affects other lists as well.

---

<div class="post-metadata">

**Author:** ![v.olthuis](https://avatars.discourse-cdn.com/v4/letter/v/57b2e6/32.png) [@v.olthuis](https://forum.dynamobim.com/u/v.olthuis)\
**Post date:** [December 10, 2020, 8:08am UTC](https://forum.dynamobim.com/t/combined-in-the-hierarchy-of-the-same-list/58156/10 "2020-12-10T08:08:10Z")

</div>

Maybe this helps?

 ![afbeelding](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/e/dea6bf7876a750c19fcd12654c3ee18d8c40080b.png)

and if you put item at keep list structure:

 ![afbeelding](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/9/c9645f21e3175e0ff9cedc0e570432560cdd5d58.png)
