# Value to no answered questions

4 years 3 months ago #108509 by giankuka
giankuka created the topic: Value to no answered questions
I have assigned one valut to every question (1=100 2=80 3=50 4=25).
Is it possibile to assign the same a value (100) to the question if the user doesn't answer to it?
Because at the end of the survey I want to sum the value of all the questions.
Thanks

4 years 3 months ago #108515 by jelo
jelo replied the topic: Value to no answered questions
Why don't you try it out. I would say yes.
No real survey would like to have same values for different answers, but it is possible.

But you might take a look at Assessments:
manual.limesurvey.org/Assessments

If you want to use these value to sum up and show something back to the user it might suits your needs. Mostly such SumUps are for Quizes or Tests.

4 years 3 months ago #108534 by giankuka
giankuka replied the topic: Value to no answered questions
Really I would like to have the average score of all questions. But If some questions are no answered the average score will be no correct. How can I have the average score only of the questions with an answer?

4 years 3 months ago #108542 by jelo
jelo replied the topic: Value to no answered questions

giankuka wrote: But If some questions are no answered the average score will be no correct.

I cannot understand you.

This are two complete different scenarios.

To really help you, we should see some or all questions of your project. Or post two questions to make your point clear.

If you state

I have assigned one valut to every question (1=100 2=80 3=50 4=25).

I wonder how you assign values to questions. You can assign values to answers.

Question 1 (only one item can be choosen):

Question 2 (only one item can be choosen):

Example:
Q1.A choosen = 100
Q2.B choose = 80
Sum = 180
AVG = 180/2=90

If you only have one answer per question, what sense would it make to assign answered/not answered the same value?

4 years 3 months ago #108563 by giankuka
giankuka replied the topic: Value to no answered questions
Question 1 options

Yes, only one item can be choosen but I give the possibility to go ahead without selecting any options.
So, this questions will not have a value!
So I have two possibility to calculate the average score of the survey:
1) assign a default value to this question (for example=100)(how?)
2) not includind this "not answered questions" in the average score (how?)

4 years 3 months ago #108570 by jelo
jelo replied the topic: Value to no answered questions

giankuka wrote: 1) assign a default value to this question (for example=100)(how?)
2) not includind this "not answered questions" in the average score (how?)

1) Add an Item "Don't want to answer" with the value you want to choose and ensure that the question has to be answered.

2) Show us how you show the avg. sum at the end of the interview. Perhaps some conditions/scripting can be done.

4 years 3 months ago #108640 by giankuka
giankuka replied the topic: Value to no answered questions
1)I don't want to add an Item "Don't want to answer" because the user must have the possibility to skip the question without any action.
2) In the email report to the admin I calculate the average score in this way: {round(sum(ans1.valueNAOK, ans2.valueNAOK, ans3.valueNAOK, ans4.valueNAOK, ans5.valueNAOK)/5),0)}

4 years 2 months ago - 4 years 2 months ago #108695 by jelo
jelo replied the topic: Value to no answered questions
Did you try to count the answered questions via count and replace 5 with the count function?

count
count the number of answered (non-blank)questions in the list
number count(arg1, arg12, ..., argN)

If that is not working, take a look at countif / countifop .

The mean function is currently not implemented in EM. That would be the normal way to it in other software.
Last Edit: 4 years 2 months ago by jelo.

4 years 2 months ago #108778 by giankuka
giankuka replied the topic: Value to no answered questions
.../count(ans1.valueNAOK, ans2.valueNAOK....)
It works! Thanks a lot