Welcome to the LimeSurvey Community Forum

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

Public statistics - Special use case.

More
1 year 6 months ago #255926 by linuxhooligan
Please help us help you and fill where relevant
Your LimeSurvey version:
Version 5.6.47+231128 
Own server or LimeSurvey hosting: Self hosted VPS
Survey theme/template: Customized version of Fruity
==================

1) Usecase - We are interested in developing a survey that at the end of the questionnaire gives the user their results relative to the average of ALL OF THE PREVIOUS USERS that took the questionnaire.  So, for example, if 100 users have taken the survey and the average score is 23 and the 101st users takes the score and they get 50 we want to be able to do a calculation on that and tell them they are X% above the average.

2) I have read this page:  www.limesurvey.org/manual/Statistics

That page discusses statistics from the perspective of exporting the data for evaluation in other tools or it describes the Public Statistics feature that shows a survey summary to users which is not what we want.

3) Is it possible to access the data of all of the users that have completed a survey dynamically so that we can do some calculations and display a unique result?

Thanks.

Please Log in to join the conversation.

More
1 year 6 months ago #255927 by Joffm
This should be possible with ExpressionScript and the functions "statCount", "statCountIf"

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

More
1 year 6 months ago #255928 by linuxhooligan
Oh, interesting. Okay let me look into that, thanks Joffm.

To the mods, can someone move this thread to "Can I do this with Limesuvery" category?

I selected the wrong category by accident.

Please Log in to join the conversation.

More
1 year 6 months ago #255929 by holch
Moved to "Can I do this with Limesuvery" as requested by OP.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.

Please Log in to join the conversation.

More
1 year 6 months ago #255934 by Verale
You might need to dig into scripting or consider external tools/APIs for dynamic data access and calculations.

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose