# Table with multidimensional fields and row

**URL:** <https://forum.getodk.org/t/table-with-multidimensional-fields-and-row/45231>\
**Category:** Support\
**Tags:** form-design, odk-aggregate, odk-build, odk-collect, odk-xlsform\
**Created:** [February 16, 2024, 8:08pm UTC](https://forum.getodk.org/t/table-with-multidimensional-fields-and-row/45231 "2024-02-16T20:08:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tangi](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/tangi/32/24509_2.png) [@Tangi](https://forum.getodk.org/u/Tangi)\
**Post date:** [February 16, 2024, 8:08pm UTC](https://forum.getodk.org/t/table-with-multidimensional-fields-and-row/45231/1 "2024-02-16T20:08:24Z")

</div>

Hi ODK family , I am struggling to create a table with multiple fields and rows , and users should be able to enter numbers in those cells , for example , how many people responded "Yes" , How many responded No , How many responded "Never" , How many responded "Maybe"

Kindly see the screenshot below;

 ![Screenshot 2024-02-16 at 21.57.09](https://getodk.b-cdn.net/uploads/default/original/3X/3/0/30a96abe973f38b1c9a15a7143fa87c351e0d9af.png)

---

<div class="post-metadata">

**Author:** ![wroos](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/w/77aa72/32.png) [@wroos](https://forum.getodk.org/u/wroos)\
**Post date:** [February 17, 2024, 12:03am UTC](https://forum.getodk.org/t/table-with-multidimensional-fields-and-row/45231/2 "2024-02-17T00:03:18Z")

</div>

Are you using Collect or Enketo (Webform), please? At least for Collect, you cannot implement this cmplex format with numbers. In total, your design covers 3\*4 = 12 questions/answers.

You can find a similar discussion in a previous posting: [Need advise on how to design form layout for use with ODK Collect Android App](https://forum.getodk.org/t/need-advise-on-how-to-design-form-layout-for-use-with-odk-collect-android-app/44993). And also an ODK enhancement proposition: [Form design: grid of text or numeric input](https://forum.getodk.org/t/form-design-grid-of-text-or-numeric-input/13398). You may vote there.  
(@LN, @yanokwa. Might be to review for the roadmap?)

---

<div class="post-metadata">

**Author:** ![Tangi](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/tangi/32/24509_2.png) [@Tangi](https://forum.getodk.org/u/Tangi)\
**Post date:** [February 17, 2024, 5:21am UTC](https://forum.getodk.org/t/table-with-multidimensional-fields-and-row/45231/3 "2024-02-17T05:21:58Z")

</div>

@wroos  
thanks for your response, I am using Collect, creating forms in excel form first before I upload to ODK online to convert to xml file ,

---

<div class="post-metadata">

**Author:** ![Joseph\_Muganga](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/joseph_muganga/32/23143_2.png) [@Joseph\_Muganga](https://forum.getodk.org/u/Joseph_Muganga)\
**Post date:** [February 19, 2024, 7:24am UTC](https://forum.getodk.org/t/table-with-multidimensional-fields-and-row/45231/4 "2024-02-19T07:24:46Z")

</div>

Hello @Tangi,

You don't need to use the same layout. Instead, you can set up a repeating group with a counter set to 3 (representing male, female, other). Inside this repeating group, create three sub-groups for male, female, and other. In each sub-group, include questions to record counts for yes, no, never, and maybe.

Alternative

Another way to simplify is by using just one counter set to 3. Then, use a calculation to determine the category: if it's 1, it's gender; if it's 2, it's female; and if it's 3, it's other. After that, include the questions to count the number of yes, no, never, and maybe based on the identified category.

Hope it is clear.
