Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

How to calculate how many specific answers we have?

  • solari_de_marco
  • solari_de_marco's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 4 months ago #161046 by solari_de_marco
I have questions:

Q1 - radio , answers value: 1, 2 , 3
Q2 - radio , answers value: 1, 2 , 3
Q3 - radio , answers value: 1, 2 , 3
Q4 - radio , answers value: 1, 2 , 3

I have new template and I modify completed.pstpl file.

Why is it not working:

{countifop("=",1,Q1.value,Q2.value,Q3.value)}

{countifop("=",2,Q1.value,Q2.value,Q3.value)}


and also:

{countifop("=",1,Q1,Q2,Q3)}
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 4 months ago #161051 by tpartner
Try this:

Code:
{countifop("==",1,Q1.value,Q2.value,Q3.value)}

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose