Hi, Emma,
some additions to holch:
1. holch already said: You cannot add strings.
sum("SSR12A","SSR12B","SSR12C","SSR12D") is the same as "eggs"+"fish"+"ABC"+"laughing"
To use your codes, you have to say:
{sum(if(SSR12A=="SSR12A",1,0),if(SSR12B=="SSR12B",1,0),if(SSR12C=="SSR12C",1,0),if(SSR12D=="SSR12D",1,0))}
Meaning: If the answer of question SSR12A is code "SSR12A" there is added "1", else "0".
Obviously this is not the best way.
If you want to do some arithmetical calculations you should use numerical codes.
Using 1= Utilisée, 0 = Ne s'applique pas
the equation {sum(SSR12A.NAOK,SSR12B.NAOK,SSR12C.NAOK,SSR12D.NAOK)} will work, where "SSR12A",... are the question codes.
2. What exactly do you want to calculate? Your formula is
x/(4-y), with y=4-x
x/(4-(4-x))
x/x
So your result always will be "1", except if somebody doesn't use anything; then your formula will fail "0/0".
3. You entered your formula into the relevance equation of the question.
Into the relevance equation is entered a boolean value to decide whether a question is displayed or not.
In my opinion you are going to calculate something. So you have to create a question of type equation.
4. and last: There is a surplus comma.
So, I'd recommend:
Study the demo surveys in the demo installation
Best regards
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.