- Posts: 8
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
is it possible to change the 'Y' in to a 1?
- ErtanErsan
- Topic Author
- Offline
- New Member
Less
More
4 years 5 months ago - 4 years 5 months ago #189439
by ErtanErsan
is it possible to change the 'Y' in to a 1? was created by ErtanErsan
Hi everyone,
In a multiple choice question answers, is it possible to change the 'Y' in to a 1?
The reason why I want to do this is because I have created a custom made report in witch Yes=1 and No=0.
I am using Limesurvey 3.0 version
I hope some one can help me with this.
In a multiple choice question answers, is it possible to change the 'Y' in to a 1?
The reason why I want to do this is because I have created a custom made report in witch Yes=1 and No=0.
I am using Limesurvey 3.0 version
I hope some one can help me with this.
Last edit: 4 years 5 months ago by ErtanErsan.
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12790
- Thank you received: 3940
4 years 5 months ago #189447
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic is it possible to change the 'Y' in to a 1?
No, only when exporting the data to EXCEl, csv, ...
But if you have a custom made report you may easily change your report to handle this.
But if you have a custom made report you may easily change your report to handle this.
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: holch
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12790
- Thank you received: 3940
4 years 5 months ago #189452
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic is it possible to change the 'Y' in to a 1?
If you are really unable to modify your report, you can do this:
After the multiple question add a hidden question of type "array" with the same subquestions and answer options "1= Yes", "0 = No"
In a following question of type equation you set the values of the array, like
{Q2_SQ001=if(Q1_SQ001=="Y",1,0)}
{Q2_SQ002=if(Q1_SQ002=="Y",1,0)}
...
And now you have the desired values in Q2., and your report will work.
Joffm
After the multiple question add a hidden question of type "array" with the same subquestions and answer options "1= Yes", "0 = No"
In a following question of type equation you set the values of the array, like
{Q2_SQ001=if(Q1_SQ001=="Y",1,0)}
{Q2_SQ002=if(Q1_SQ002=="Y",1,0)}
...
And now you have the desired values in Q2., and your report will work.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13935
- Thank you received: 2551
4 years 5 months ago #189454
by DenisChenu
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.
Replied by DenisChenu on topic is it possible to change the 'Y' in to a 1?
There are an option in export GUI
manual.limesurvey.org/Export_responses
manual.limesurvey.org/Export_responses
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 following user(s) said Thank You: gabrieljenik
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12790
- Thank you received: 3940
4 years 5 months ago #189461
by Joffm
Unfortunately ErtanErsan gave no more information about his desired access to the data.
I always think the users read the manual and are more or less familiar with the GUI options.
So I assumed his report receives the data by a direct access to the database or the API.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic is it possible to change the 'Y' in to a 1?
That's what I wanted to say byThere are an option in export GUI
only when exporting the data to EXCEl, csv, ...
Unfortunately ErtanErsan gave no more information about his desired access to the data.
I always think the users read the manual and are more or less familiar with the GUI options.
So I assumed his report receives the data by a direct access to the database or the API.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu
The topic has been locked.
- ErtanErsan
- Topic Author
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 0
4 years 5 months ago #189569
by ErtanErsan
Replied by ErtanErsan on topic is it possible to change the 'Y' in to a 1?
Hi Joffm,
I did now about report functionality yes to 1 and no to 0. I using a API.
Information you give me before solved my problem.
{Q2_SQ001=if(Q1_SQ001=="Y",1,0)}
{Q2_SQ002=if(Q1_SQ002=="Y",1,0)}
Thank you
I did now about report functionality yes to 1 and no to 0. I using a API.
Information you give me before solved my problem.
{Q2_SQ001=if(Q1_SQ001=="Y",1,0)}
{Q2_SQ002=if(Q1_SQ002=="Y",1,0)}
Thank you
The topic has been locked.