Computing a score from a multiple answer options

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:
Image 2

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:

1 Like