VALISER UNE QUESTION

More
1 month 3 weeks ago #199460 by bayemanel
Bonjour a tous

j'ai deux questions
la premiere:

REP°) donner la repartition :

Hommes
Femmes
Enfant
Fille


la deuxieme :

NUMEE°) Combien de personne au total compte cette repartition



je veux mettre en place une validation qui permet de verifier si la somme des modalites (homme; femme, Enfant, fille )
soit inferieure ou egale a la valeur de la deuxieme question

j'ai mis comme condition sum(1,2,3,4) =< NUMEE.NOAK

ça marche pas

Please Log in to join the conversation.

LimeSurvey Partners
More
1 month 3 weeks ago #199462 by Joffm
Replied by Joffm on topic VALISER UNE QUESTION
Hi,
this is the English part of the forum.
Please write in English or use the French part.


Bonjour,
c'est la partie anglaise du forum.
Veuillez écrire en anglais ou utiliser la partie française.

Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

More
1 month 3 weeks ago #199463 by bayemanel
Replied by bayemanel on topic VALISER UNE QUESTION
Pardon!!
Good morning all

I have two questions
the first one:

REP °) give the distribution: type question multi text field

Men
Women
Child
Girl


the second :

NUMEE °) How many people in total has this distribution



I want to set up a validation which makes it possible to verify if the sum of the modalities (man; woman, Child, girl)
either less than or equal to the value of the second question

I put as condition sum (1,2,3,4) = <NUMEE.NOAK

it does not work

Please Log in to join the conversation.

More
1 month 3 weeks ago #199469 by Joffm
Replied by Joffm on topic VALISER UNE QUESTION
Hi,

sum (1,2,3,4) = <NUMEE.NOAK


What do you want to sum?
The entries in the subquestions of REP.
So you have to use this syntax.

sum(QCode_SubquestionCode,QCode_SubquestionCode,...)

sum(REP_SQ001.NAOK,REP_SQ002.NAOK,REP_SQ003.NAOK,REP_SQ004.NAOK)


But in my opinion - if you may count girls double (as child and as girl) - the total number can be less than the sum.
Or?

Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

More
1 month 3 weeks ago #199473 by bayemanel
Replied by bayemanel on topic VALISER UNE QUESTION
Maybe my example is not relevant to go back to the fact
specific example

AT 12 :
Question: What is the gender distribution?

-SQ001: Permanent-Men
-SQ002: Permanent-Women
-SQ003: Seasonal / temporary-Men
-SQ001: Seasonal / temporary-Women

A13: How many workers are registered with IPRES?

control to put:
The number of workers registered with IPRES must not be greater than the total number of workers declared by the unit

Please Log in to join the conversation.

More
1 month 3 weeks ago - 1 month 3 weeks ago #199482 by tpartner
Replied by tpartner on topic VALISER UNE QUESTION
Well, your question and sub-question codes seem to be moving targets but try something like this:

A13 <= sum(that.A12)

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com
Last edit: 1 month 3 weeks ago by tpartner.
The following user(s) said Thank You: bayemanel

Please Log in to join the conversation.

More
1 month 3 weeks ago #199484 by bayemanel
Replied by bayemanel on topic VALISER UNE QUESTION
perfect thank you a lot it work

Please Log in to join the conversation.

More
1 month 3 weeks ago #199496 by Joffm
Replied by Joffm on topic VALISER UNE QUESTION
Another solution:

Set the minimum of AT13 to sum(that.AT12)

Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:

Please Log in to join the conversation.

More
1 month 3 weeks ago #199505 by DenisChenu
Replied by DenisChenu on topic VALISER UNE QUESTION
It's not a Development … please : next time take care …
I move the topic

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.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now