# Calculations for multi-select questions

**URL:** <https://forum.getodk.org/t/calculations-for-multi-select-questions/39521>\
**Category:** Support\
**Created:** [November 7, 2022, 3:01pm UTC](https://forum.getodk.org/t/calculations-for-multi-select-questions/39521 "2022-11-07T15:01:14Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![danbjoseph](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/danbjoseph/32/21901_2.png) [@danbjoseph](https://forum.getodk.org/u/danbjoseph)\
**Post date:** [November 7, 2022, 10:14pm UTC](https://forum.getodk.org/t/calculations-for-multi-select-questions/39521/2 "2022-11-07T22:14:48Z")

</div>

Welcome to the ODK forum, @Tarang_Khurana! We're glad you're here. When you get a chance, please [introduce yourself on this forum thread](https://forum.getodk.org/t/-/6671). I'd also encourage you to add a picture as your avatar because it helps build community!

for **`opt_q5_total`** instead of...  
`${opt_q5_a} and ${opt_q5_b}`

try...  
`if((${opt_q5_a}='1' and ${opt_q5_b}='1'),'1','0')`

---

_[View the full topic](https://forum.getodk.org/t/calculations-for-multi-select-questions/39521)._
