I have two questions; one is single selection and another one is multiple selection.
Question 1: what type of structure it is?
Temporary Structure (Assign score -1)
Semi-Permanent Structure (Assign score -3)
Permanent Structure (Assign score -5)
Question 2: What is the current practice of sludge management? (multiple selection)
Pit sealed permanently when it gets full. (Assign score -1)
Pit is connected to nearby Canal. (Assign score -2)
Pit is connected to nearby River. (Assign score -3)
Pit is connected to nearby ditch (Local Name: Ber) (Assign score -4)
Pit cleaned by manually and sludge is dumped. (Assign score -5)
Pit cleaned mechanically. (Assign score -6)
Pit connected to nearby waterbody in the monsoon. (Assign score -7)
How can I calculate the total score in Kobo Template using expression?
Hi @minhazaunibd ,
This post by Kal should help you:
Welcome to the community, @hafiza_fouani2020usp ! You could do it as outlined in the post discussed previously:
And this one too β¦
This too β¦
This one too β¦
And this one too β¦
2 Likes
Hi ! Thanks a lot for your cordial support. Its amazing.
2 Likes
@hakan_cetinkaya , is it possible to do multiple option and scoring in a single question ?
Hi @minhazaunibd , can you explain what do you mean by that?
If you can explain with a dummy question and some examples, community could understand it better.
1 Like
wroos
October 3, 2023, 1:06pm
6
@minhazaunibd
Could you share the related part of your form (incl. the relevant choices), please? So, we could discuss further options for your score requirement.
2 Likes
Question 2: What is the current practice of sludge management? (multiple selection)
Pit sealed permanently when it gets full. (Assign score -1)
Pit is connected to nearby Canal. (Assign score -2)
Pit is connected to nearby River. (Assign score -3)
Pit is connected to nearby ditch (Local Name: Ber) (Assign score -4)
Pit cleaned by manually and sludge is dumped. (Assign score -5)
Pit cleaned mechanically. (Assign score -6)
Pit connected to nearby waterbody in the monsoon. (Assign score -7)
Like for this question, there is 7 option. If it is a multiple selection and I chose option 1, 2 and 5, total value will be 8 as per assigned scored. Is it possible to do?
Hi @minhazaunibd ,
In your survey
sheet:
type
name
label
required
calculation
start
start
end
end
select_multiple Q1
Q1
What is the current practice of sludge management?
false
calculate
C1
if(selected(${Q1}, β1β),1,0)
calculate
C2
if(selected(${Q1}, β2β),2,0)
calculate
C3
if(selected(${Q1}, β3β),3,0)
calculate
C4
if(selected(${Q1}, β4β),4,0)
calculate
C5
if(selected(${Q1}, β5β),5,0)
calculate
C6
if(selected(${Q1}, β6β),6,0)
calculate
C7
if(selected(${Q1}, β7β),7,0)
calculate
C_Total
${C1}+${C2}+${C3}+${C4}+${C5}+${C6}+${C7}
note
N_1
Your total score is: ${C_Total}
And in your choices
sheet:
list_name
name
label
Q1
1
Pit sealed permanently when it gets full.
Q1
2
Pit is connected to nearby Canal.
Q1
3
Pit is connected to nearby River.
Q1
4
Pit is connected to nearby ditch. (Local Name: Ber)
Q1
5
Pit cleaned by manually and sludge is dumped.
Q1
6
Pit cleaned mechanically.
Q1
7
Pit connected to nearby waterbody in the monsoon.
And this is the XLS file that you can use and test it by yourself:
Calculate From Multiple Choices.xlsx (10.4 KB)
1 Like
WOW! Its working perfectly. Thanks a lot @hakan_cetinkaya
2 Likes