# Same answers to differents questions, statistics

4 years 9 months ago #87131 by rendiok
rendiok created the topic: Same answers to differents questions, statistics
Hi,

I took several days with LimeSurvey and I like the most things. Now I'm trying to do a survey for a high-school of this type:

Question 1:
The credit 01 is...

A1:Good
A2:Normal

Question 2:
The credit 02 is...
A1:Good
A2:Normal

Question 3:
The credit 03 is...
A1:Good
A2:Normal

...

So that I want is two types of statistics.

1- statistics for each question (total of Good,Normal,Bad). This, the LimeSurvey do it perfectly.

2- statistics for all survey, in other words, the total "Good, Normal and Bad" of all the questions, adding the same answers to total survey.

Sorry for my english and sorry if the question was answered, I searched and nothing found.

Thanks,

4 years 9 months ago #87136
DenisChenu replied the topic: Same answers to differents questions, statistics
Hello,

LimeSurvey aren't a statistics tool, but here you can use another questions, maybe 3 equation question type.
And the equatio can be :
- SUMGOOD : {sum(Q1.NAOK=="A1",Q2.NAOK=="A1",Q3.NAOK=="A1")}
- SUMNORM : {sum(Q1.NAOK=="A2",Q2.NAOK=="A2",Q3.NAOK=="A2")}

Denis
PS: docs.limesurvey.org/Question+type+-+Equation

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

4 years 9 months ago #87174 by rendiok
rendiok replied the topic: Same answers to differents questions, statistics
Hi DenisChenu,

Thanks for the help! I don't know much about equations and I has studied it more. However the values "SUMGOOD, SUMNORM, SUMBAD" or any value, only it saves the value in the current survey which user is answering?

Q1: Good
Q2: Good

SUMGOOD: 2
SUMNOrmal:0

Q2: Good

SUMGOOD: 1
SUMNOrmal:0

So I have two questions of this... the values SUMGOOD/NORMAL/BAD are erased on start of each survey no? There is any way to save the value of last answered survey by the last user and increase it in the current survey? The value SUMGOOD/... is saved in database until the survey is expired/desactivated or only temporaly until user finish the survey?

And another question, for my survey I thought to do a vector.

C1---[]--[]
[]--
C2---[]--[]
[]--
C3---[]--[]
[]--

So when I generate a statistics of this the results split by C1,C2 and C3. There are any way that using equations and values (SUMGOOD..) that could show me the C1,C2 and C3 like one, no split?

Thanks again and sorry if I'm annoying...

4 years 9 months ago #87185
DenisChenu replied the topic: Same answers to differents questions, statistics

rendiok wrote: So I have two questions of this... the values SUMGOOD/NORMAL/BAD are erased on start of each survey no? There is any way to save the value of last answered survey by the last user and increase it in the current survey? The value SUMGOOD/... is saved in database until the survey is expired/desactivated or only temporaly until user finish the survey?

To have this fuctionnality, you have to hack the code or use ajax. But it's a php/javascript dev job.

...
Thanks again and sorry if I'm annoying...

Nope

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

4 years 9 months ago #87258 by rendiok
rendiok replied the topic: Same answers to differents questions, statistics
Ok DenisChenu, thanks again for the help!