Welcome to the LimeSurvey Community Forum

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

Piping from Ranking to Constant Sum questions

  • blocka
  • blocka's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
7 years 7 months ago #139482 by blocka
What I need is a survey that can do the following: Page 1: A ranking question with 10 options Page 2: A constant sum question that draws from the results of page 1 ranking question and displays the options for the constant sum question in ranked order.

Is this possible, and is there a walk through to explain how to do this?
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 7 months ago - 7 years 7 months ago #139499 by Joffm
Hi, blocka,
let's say ranking question is r1 with answer codes "1", "2", "3",... and Items "Item 1", "Item 2", ...
So in your rating question you enter as answer options
answer option 1: {if(r1_1==1,'Item 1', if(r1_1==2,'Item 2', if(r1_1==3,'Item 3', if(r1_1==4,'Item 4',''))))}
answer option 2: {if(r1_2==1,'Item 1', if(r1_2==2,'Item 2', if(r1_2==3,'Item 3', if(r1_2==4,'Item 4',''))))}
and so on.

Here are some screenshots of:
  • the ranking question
  • the rating question
  • the expressions in "edit subquestions"

And here you have a sample survey (*.lss)

Kind regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 7 years 7 months ago by Joffm. Reason: Ergänzung
The following user(s) said Thank You: blocka
The topic has been locked.
  • blocka
  • blocka's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
7 years 7 months ago #139647 by blocka
Tha is very much for your help!
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose