Hi, Petteri,
you do it exactly as you would explain it.
"if an object goes to bucket 1, increase the sum of bucket 1 by 1"
"if an object goes to bucket 3, increase the sum of bucket 3 by 1".
"if an object goes to bucket 1" means "if the code of the object is "A1"
I use your example of the first post
I have 4 radio button questions (Q1, Q2, Q3, Q4) with each 4 answer possibilities (A1, A2, A3, A4).
Create 4 questions of type equation (sumA1, sumA2,...)
The above translated to an equation:
sumA1:
{sum(if(Q1=="A1",1,0),if(Q2=="A1",1,0),if(Q3=="A1",1,0),if(Q4=="A1",1,0))}
...
sumA3:
{sum(if(Q1=="A3",1,0),if(Q2=="A3",1,0),if(Q3=="A3",1,0),if(Q4=="A3",1,0))}
Joffm
Please, read the manual about the if-statement, implemented functions and the question types