calculate average

0

Hi,

if I have a radio button table (20 item), can I calculate the average of item 5, 12, 16 and 19? I would like to have the results in report. Is it possible?

Thanks

Donatella Fiorentino asked
    0

    Thanks for the reply Jim.

    However, I do not know create a code that can do it.

    Anyone has already developed a script like this?

    Donatella Fiorentino answered
      0

      Hi Donatella,

      You might also look at the Quiz Score action as a possible solution which allows you to calculate a score (or average) based upon a respondent’s answers to questions that you choose:

      http://help.surveygizmo.com/help/article/link/video-tally-quiz-score-action

      With the “Tally” option, you can even assign your own point-values to each answer option. This allows you to define your own scale, or have weighted answers for example.

      The results of a Quiz Score action may also be included in a report.

      I hope this helps!

      Nathan - Survey Astronaut answered
        1

        Would you be willing to share a link to your survey? I can write up some code for you if you want! I like the practice :)

        Elizabeth Rose answered
          0
          Emma 973 Rep.

          Hey Donatella – Were you able to figure out a script for this? I’m looking into doing something similar. Any tips you may have will be very helpful! Thanks in advance!

          Emma answered
            2

            If you have a Pro or Enterprise level account, you can develop a custom script to perform this task.

            The script would have to get the values entered in the radio-button matrix (returned as an array), extract the values from the array, add and divide the values to yield the average, and then set that as a value that could be displayed in a report.

            I have never developed a script like this, but it would seem that you would have to make each of the sub-questions within the matrix required.  Otherwise you would have to write code for instances where one or more of the values you are using to calculate the average are missing.

            Jim Wetherill answered
              ×

              Login

              Question stats

              • Active
              • Views5703 times
              • Answers5 answers
              • Followers0 followers