Welcome to the LimeSurvey Community Forum

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

Choosing most checked options with EM

  • rauno_s
  • rauno_s's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 3 weeks ago #133572 by rauno_s
Choosing most checked options with EM was created by rauno_s
Hello forum, I question on the feasibility of expression manager. Suppose I have a survey of a multiple choice array:

Q1: Please mark all the channels where you have seen the following brands:
/Coca / Fanta / Sprite
Radio [x] [ ] [ ]
TV [ ] [ ] [ ]
Internet [x] [x] [x]
Outdoor [ ] [ ] [ ]
Other [x ] [x ] [ ]

Respondent has checked:
/radio/ once
/other/ option twice
/internet/ three times.

I would need to two most checked options to be rated (Internet and Other in my case):

Q2: How often do you use the following channels:
Often Rarely
INTERNET [ ] [ ]
OTHER [ ] [ ]

With EM I can create extra variables that count() number of checked values for each channel, but is there a function to substitute the name of the channel according to the number of checked items (eg show only 2 most checked channels)?
The topic has been locked.
  • Mazi
  • Mazi's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
8 years 3 weeks ago #133573 by Mazi
Replied by Mazi on topic Choosing most checked options with EM
For just showing the top 1 item you can try to combine the count() and max() function. Everything else is probably far more complex and may require additional coding.

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose