Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: How can I show in a question the sum of two answers given to a question before

How can I show in a question the sum of two answers given to a question before 2 years 10 months ago #100056

LimeSurvey Version + Build Version 2.00+ Build 130913
PHP Version 5.4
MySQL Version ?
Betriebssystem Win 7
Browser, etc. Netscape






How can I show in a question the summation of two answers given to a question before?

For example:

Question 2: How many people choose: a)
b)
c)
d)

Question 4: How many respondents from (Sum of Question 2a + 2c) choose the following possibilities?
blablabla


I know how to show the amount of a single answer, but not how to sum variables. Thanks!
The administrator has disabled public write access.

How can I show in a question the sum of two answers given to a question before 2 years 10 months ago #100059

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9269
  • Thank you received: 1321
  • Karma: 383
Hi,

See manual.limesurvey.org/Expression_Manager

{sum(that.Q2.NAOK)} maybe

Denis
Assistance on LimeSurvey forum and LimeSurvey core developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
The administrator has disabled public write access.

How can I show in a question the sum of two answers given to a question before 2 years 10 months ago #100088

Thank you for your answer.

I found out it is really simple:

Question 4: How many respondents from {SGQAf2a + SGQAf2c} choose the following possibilities?
blablabla
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.218 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form