Function if error

Bonjour cher Communauté,

Pourriez m’aider à utiliser la fonction ""si erreur “” dans Kobocollect.

Merci d’avance !

Would you mind explaining your issue in detail so that the community could understand your issue?

Je voudrais que lors de la division si le résultat est impossible comme par exemple 0/0…que alors il affiche 0. Car les questions suivantes sont possibles que si cette division est >0.

@Bakary, could you maybe share with the community a sample question (1 or 2) and the condition so that the community should be able to understand your issue? Please note that if you are trying to use the divide operation, you could use something like 3 div 2 instead of using 3/2. If this is not what you are looking for, try sharing the question as requested.

Bonjour @Kal_Lam

Ci joint le fichier.

TEST.xlsx (9.8 KB)

Mon souci est que si le calcul n’est pas évident (c’est à dire erreur de calcul) qu’au moins il affiche 00 %.
Mais aussi que les questions liées à ce calcul prennent le résultat en compte.

Merci.

@Bakary, the variable name nbre_employes1 you used in Row 5 is a bit unclear for me. How did you get it?

Bonjour @Kal_Lam

Merci de considérer le fichier suivant


Merci encore.

@Bakary, could you share the updated xlsform with the community that holds this section so that the community should be able to work around it?

aPJnpuxoS3YhPLNNKq7wvy (1).xlsx (17.2 KB)

Bonsoir @Bakary
A quelle question voulez-vous ajouter spécifiquement la condition if et le calcul par division ? Ce n’est toujours pas clair pour moi

Stephane

aPJnpuxoS3YhPLNNKq7wvy (2).xlsx (19.1 KB)

Bonsoir @stephanealoo

Je voudrais que si le résultat du calcul à la ligne 134 est impossible, qu’il affiche au 00 %, car certaines questions sont conditionnées par ce résultat.

Merci.

@Bakary, do you mean you wish to activate that text question if the result from the calculation is greater than 0?

@Kal_Lam en fait je voudrais que si le résultat est n’est pas possible par exemple Zéro sur zéro (0 div 0) qu’il affiche 00 % à la question 4.7

Merci !

So it should be relavant only when the result is greater or equal to 1?