Revelant if n numbers of questions are yes

Welcome to the ODK forum, @ricardovr22! We're glad you're here. When you get a chance, please introduce yourself on this forum thread. I'd also encourage you to add a picture as your avatar because it helps build community!

If your questions will have answers of either 0 or 1 (as the choice name) then this should be simple to implement. You can put a constraint on the next section that looks something like:
(${q1}+${q2}+${q3}+${q4}+${q5}+${q6}+${q7}+${q8}+${q9}+${q10})>5

check_yes_count_example.xlsx (9.6 KB)

Note that in this implementation, you must answer all the questions used in the relevant before it will correctly calculate. And all the possible answers must be 0 or 1. A text answer will not be a number and will mess up the addition. A blank answer will not be a number and will mess up the addition. If you need more flexibility you can explore empty values in math, and if statements to evaluate certain answers to either yes or no using accompanying calculate type questions.

1 Like