# Creating a calculate field that uses answers to a previous multiple choice cascading question

**URL:** <https://forum.getodk.org/t/creating-a-calculate-field-that-uses-answers-to-a-previous-multiple-choice-cascading-question/56799>\
**Category:** Support\
**Created:** [September 24, 2025, 5:31am UTC](https://forum.getodk.org/t/creating-a-calculate-field-that-uses-answers-to-a-previous-multiple-choice-cascading-question/56799 "2025-09-24T05:31:35Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jules\_rugwiro](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/jules_rugwiro/32/1738_2.png) [@jules\_rugwiro](https://forum.getodk.org/u/jules_rugwiro)\
**Post date:** [September 24, 2025, 9:45am UTC](https://forum.getodk.org/t/creating-a-calculate-field-that-uses-answers-to-a-previous-multiple-choice-cascading-question/56799/2 "2025-09-24T09:45:47Z")

</div>

Hello @Julie

Welcome to ODK Community, when you get a chance, please [Introduce yourself here!](https://forum.getodk.org/t/introduce-yourself-here/6671)

To get labels of selected items (crops) in `select_multiple` you can use `jr:choice-name()` in combination with `selected-at()` since more items can be selected. The later function allows you to point to a desired index for label retrieval. However, I noticed your choices uses text labels, in which case `selected-at()` alone, might suffice to retrieve the label. I used the combo, should you use `pseudo` `name` (i.e.: numbers and short codes) in your choices.

As for controlling `relevant` based on number of selected items, you can use `count-selected()`.

I made the changes in your [HDDAP baseline - draft farmers questionnaire - test.xlsx](https://forum.getodk.org/uploads/short-url/k5tjxY3dtlp3afmvK9BOOyiLjvV.xlsx), test it out and let me know if it worked for you.

Happy ODKing

Best,

Jules R

---

_[View the full topic](https://forum.getodk.org/t/creating-a-calculate-field-that-uses-answers-to-a-previous-multiple-choice-cascading-question/56799)._
