Welcome to the LimeSurvey Community Forum

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

Displaying results of an Equation in Public Statistics

  • matthewpulis
  • matthewpulis's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 2 months ago #226353 by matthewpulis
Your LimeSurvey version:   3.28.1+220229
Own server or LimeSurvey hosting: Own
Survey theme/template: fruity
==================

I have a question (Expression Type) {highestPersonality} which is parsing some data, and it ultimately gives one of 4 outputs: 'Socialiser' 'Explorer' 'Achiever' or 'Killer'. I want to publicly display these statistics. So I created another question {displayStyle} https://imgur.com/XptE3fy - again Expression, and in the text I wrote a short description, but in its Logic > Equation I referenced the first question {highestPersonality}

Data is recorded fine in the database as can be confirmed in the screenshot. But it is not being displayed. Any workaround, please?

https://imgur.com/XptE3fy

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 2 months ago - 3 years 2 months ago #226354 by Joffm
Hi,
you should use a question of type "radio(list)" with these four answer options where you set the values by an equation.
Like 
{Q2=if(highestPersonality=="Socializer",1,if(highestPersonality=="Explorer",2,if(highestPersonality=="Achiver",3,4)))}

 

And, please, attach a lss export of these relevant questions.
Ease our live, that we do not have to guess and recreate your design.

Joffm
 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 3 years 2 months ago by Joffm.
The following user(s) said Thank You: matthewpulis

Please Log in to join the conversation.

  • matthewpulis
  • matthewpulis's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 2 months ago #226356 by matthewpulis
Joffm - your solution worked perfectly :)

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose