Array

More
1 year 3 months ago #183581 by acasadei90CRT
Array was created by acasadei90CRT
Hello Community,

I'm trying to create a questionnaire where there are two questions:

1) one where you have to rate a product (scale from 1 to 5)

2) second one where you have to rate from 1 to 3 the three most important benefits of the previous products.

In the second question I would like to reduce the number of products based on the selection done in the first question: I would like to have just only the products that have been rated with 3 or more.

Is it possibile to do that?

I attached a file in order to better understand my textual explanation.

Best regards,

Andrea
Attachments:
The topic has been locked.
LimeSurvey Partners
More
1 year 3 months ago #183586 by DenisChenu
Replied by DenisChenu on topic Array
See relevance equation on sub questions : manual.limesurvey.org/Adding_answers_or_...fic_for_subquestions

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development . I don't answer to private message.
The topic has been locked.
More
1 year 3 months ago #183592 by Joffm
Replied by Joffm on topic Array
Hi,
1. first you should swap benefits and products in the second question.
Not only because of consistency but... there is no subquestion relevance on columns.

2. You should change your alphanumerical codes "A1", "A2" to numerical 0,1,2,3...
In the second question you are going to compare

3. Having done this you can set the subquestion relevance in s1001
s1001_SQ001: s1000_SQ001>2
s1001_SQ002: s1000_SQ002>2

With your codes "A1",... you had to enter: s1000_SQ001=="A4" OR s1000_SQ001=="A5" OR s1000_SQ001=="A6"
Furthermore: I am sure you want to calculate some statistics, like mean, t-test, or so.
What do you think is the mean of "A1", A2" and "A4". It is not "A2,33".

Best regards
Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
More
1 year 3 months ago #183600 by acasadei90CRT
Replied by acasadei90CRT on topic Array
Hi Joffm,

I swapped products and benefits in the second question and I also changed the codes (in the first question - edit answer option).

Then I set the relevance equations in the second question but i have probably done some errors because it didn't worked.

I share a picture about the second question's setting.


Thanks in advance,

Andrea
Attachments:
The topic has been locked.
More
1 year 3 months ago #183604 by Joffm
Replied by Joffm on topic Array
Hi, Andrea,

s1001_SQ001: s1000_SQ001>2 should mean:

In subquestion SQ001 of question s1001 you enter into the relevance equation s1000_SQ001>2

Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: acasadei90CRT
The topic has been locked.
More
1 year 3 months ago #183606 by acasadei90CRT
Replied by acasadei90CRT on topic Array
Yes Joffm,


I had also tried that solution but it didn't work so I thought it wasn't correct.


I attach the file. I launched the survey preview but the second question's rows still also appear independently by the first question's answers.
Attachments:
The topic has been locked.
More
1 year 3 months ago - 1 year 3 months ago #183608 by Joffm
Replied by Joffm on topic Array
If you call your question "s1000", please use "s1000" in the relevance equation, not "S1000"



Some more words:
Remeber to check in each row that only three benefits are selected with different values.
This is done by subquestion validation.

Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:
Last edit: 1 year 3 months ago by Joffm.
The following user(s) said Thank You: DenisChenu, acasadei90CRT
The topic has been locked.
More
1 year 3 months ago #183611 by acasadei90CRT
Replied by acasadei90CRT on topic Array
Thank you Joffm,

Ops, I made a terrible mistake with that "s".

I will try to set the subquestion validation as you suggested to me.

Thank you again for your help.

Andrea
The topic has been locked.
More
1 year 3 months ago #183613 by Joffm
Replied by Joffm on topic Array
Keep calm, Andrea,
that's not a terrible mistake. That's a typo, but unfortunately you will never find yourself.

Similar to my "remeber" in the last post.

Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
More
1 year 3 months ago #183621 by acasadei90CRT
Replied by acasadei90CRT on topic Array
Regarding to the subquestion validation i was trying to use the following logic:

1) Set the sum of the subquestions' answers must be equal to 6 (because there are only three possible value: 1,2,3)

2) There must be only 3 answers for each row, the others must be empty (because they have to choose the three most important benefits among all the possible one).


Is it a good way to do it or there are other better solutions?

Best Regards,

Andrea
The topic has been locked.
More
1 year 3 months ago #183628 by Joffm
Replied by Joffm on topic Array
Yes,
these are the two conditions:
Sum of answers ==6
Count of answers ==3

Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
More
1 year 3 months ago #183642 by Joffm
Replied by Joffm on topic Array
You have also to check uniqueness to avoid "2+2+2"

Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
More
1 year 3 months ago #183651 by acasadei90CRT
Replied by acasadei90CRT on topic Array
Hello Joffm,

Thank you very much for your suggest, it is also necessary to add that condition.

What is the code that I can use in order to set this condition on subquestion validation?

I meant:
SUM("subquestionvalue1", "subquestionvalue2", ……)

What is the code for the "subquestionvalue"?
The topic has been locked.
More
1 year 3 months ago - 1 year 3 months ago #183661 by Joffm
Replied by Joffm on topic Array
Hi, Andrea,

What is the code for the "subquestionvalue"?

This is not a serious question, is it?

Remember, what you entered in the subquestion relevance of the second question.
Something like "s1000_SQ001>2".
Meaning: The value of the subquestion "SQ001" of question "s1000" is greater then 2.
Here you have your subquestion value.

I thought about the validation a bit more.
Except the validations "sum==3", "count==6", "all unique" you have to check if the question is displayed. So you have to add sommething like the above "s1000_SQ001>2".

long.

So I think about a different design.
Instead of using an array(numbers)" with all the validation, use a ranking question where everything is built-in.

Have a look.

File Attachment:

File Name: limesurvey...3793.lss
File Size:36 KB


Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:
Last edit: 1 year 3 months ago by Joffm.
The following user(s) said Thank You: acasadei90CRT
The topic has been locked.
More
1 year 3 months ago #183815 by acasadei90CRT
Replied by acasadei90CRT on topic Array
Thank you Joffm.

Sorry for the delay but I tried to adopt your solution to another questionnaire and I have just finished.

I had never used the ranking question but it is perfect for my purposes.

Thanks again and I wish you a great weekend.

Best Regards,

Andrea
The topic has been locked.

Start now!

Just create your account and start using Limesurvey today.

Register now