Hello Kal_am
Questions with multiple answer options allow calculations?
Hello Kal_am
Questions with multiple answer options allow calculations?
Could you kindly explain your issue so that we better understand and provide you a suitable response. We would appreciate if you could provide a dummy question, choices and an explanation on what you wish to see.
Hi @braulioangulo
In essence, you can pull any question type into a calculation including multiple response. However, you should note that calculation options will be limited since these will be text and as such limited to string based calculations. As @Kal_Lam has suggested, could you send us a dummy questionnaire so that we look at it and propose a solution.
Stephane
Hello Kal-Lam and stephanealoo
I present the following example.
I need to calculate the score for the following multiple choice question:
Which of the following activities do you do in your free time?
Κ 1 Option: Do sports______________________XML Value: 10.001
β 2 Option: Dancing_______________________XML Value: 10.002
β 3 Option: Play a musical instrument_______XML Value: 8.001
Κ 4 Option: Read a book__________________XML Value: 8.002
Κ 5 Option: Listen to music________________XML Value: 8.003
Κ 6 Option: Prune the garden______________XML Value: 9.001
Κ 7 Option: do a Walk_____________________XML Value: 10.003
β 8 Option: Watch an series TV_____________XML Value: 2
Κ 9 Option: Sleep_________________________XML Value: 1
The calculation requires performing as follows: Average the values of the selected options. For the exercise I mark them with β.
β 2 Option: Dancing_______________________XML Value: 10.002
β 3 Option: Play a musical instrument_______XML Value: 8.001
β 8 Option: Watch an TV series_____________XML Value: 2
(10.002 + 8.001 + 2) divide 3
Is this possible on Kobo with the multiple-choice question type?
Maybe you could do the same as outlined in the image below:
In the survey tab of your xlsform:
In the choices tab of your xlsform:
Data entry screen as seen in Enketo:
Reference xlsform:
Calculation.xlsx (11.9 KB)
If you wish to control the decimal digit of your calculated value, you could do the same as outlined in the post discussed previously: