# Apartment Matrix by Level - List Structure Help

**URL:** <https://forum.dynamobim.com/t/apartment-matrix-by-level-list-structure-help/31983>\
**Category:** Lists-Logic\
**Created:** [February 12, 2019, 1:00am UTC](https://forum.dynamobim.com/t/apartment-matrix-by-level-list-structure-help/31983 "2019-02-12T01:00:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TWH11](https://avatars.discourse-cdn.com/v4/letter/t/bc8723/32.png) [@TWH11](https://forum.dynamobim.com/u/TWH11)\
**Post date:** [February 12, 2019, 1:00am UTC](https://forum.dynamobim.com/t/apartment-matrix-by-level-list-structure-help/31983/1 "2019-02-12T01:00:25Z")

</div>

Hi All,

Trying to generate an apartment development schedule to export into excel into the following format;

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

There are **79 Apartment Types** & **47 Levels**

I have collected the **apartment areas by level** & collected all the **apartment types** that need to check against each level.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/1/516d4c1a66542c0939db70d3d250a8061da9fafa.png)  
_(data in excel attached)_

The output I am trying to achieve is 47 lists of 79 counts of apt type.

Any help is greatly appreciated.

[APTbyLevel-APTtypes\_DynamoExport.xlsx](https://forum.dynamobim.com/uploads/short-url/tFfm6fpIhcEVKTfliMvunNncaA3.xlsx) (11.2 KB)

---

<div class="post-metadata">

**Author:** ![kennyb6](https://avatars.discourse-cdn.com/v4/letter/k/7ba0ec/32.png) [@kennyb6](https://forum.dynamobim.com/u/kennyb6)\
**Post date:** [February 12, 2019, 2:01am UTC](https://forum.dynamobim.com/t/apartment-matrix-by-level-list-structure-help/31983/2 "2019-02-12T02:01:53Z")

</div>

Hello. Can you attach your Dynamo graph too? And the excel you attached is the output of your current graph, not the data you used to make it?

I can’t test using your data, but something along these lines should work:

 ![countrooms](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/d/0d3bdfe01688328de35889a88148dcbb561002d6.png)

The last node, List.CountTrue uses “Keep List Structure” option (shown by the blue), which requires you to set it, save the graph, close and reopen, for it to work.

---

<div class="post-metadata">

**Author:** ![TWH11](https://avatars.discourse-cdn.com/v4/letter/t/bc8723/32.png) [@TWH11](https://forum.dynamobim.com/u/TWH11)\
**Post date:** [February 12, 2019, 4:04am UTC](https://forum.dynamobim.com/t/apartment-matrix-by-level-list-structure-help/31983/3 "2019-02-12T04:04:36Z")

</div>

Hey Kenny,

Thank you very much for your help, it worked a treat!

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