Welcome to the LimeSurvey Community Forum

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

VALISER UNE QUESTION

  • bayemanel
  • bayemanel's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 11 months ago #199460 by bayemanel
VALISER UNE QUESTION was created 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
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 11 months 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.
[hr]
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
The topic has been locked.
  • bayemanel
  • bayemanel's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 11 months 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
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 11 months 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
The topic has been locked.
  • bayemanel
  • bayemanel's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 11 months 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
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 11 months ago - 3 years 11 months 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:

Code:
A13 <= sum(that.A12)

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 3 years 11 months ago by tpartner.
The following user(s) said Thank You: bayemanel
The topic has been locked.
  • bayemanel
  • bayemanel's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 11 months ago #199484 by bayemanel
Replied by bayemanel on topic VALISER UNE QUESTION
perfect thank you a lot it work
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 10 months 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:
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 10 months 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.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose