Bonjour,
Je debute en CRXI et j'ai un probleme de calcul d'une moyenne d'un calcul champ de formule. Lorsque j'essai simplement "average(formule_champ)", Crystal me renvoit l'erreur "field cannot be summurized".
le formule_champ "SCORE_DECIDER" correspond a l'affichage d'un score:
De nombreuses interactions et leurs scores sont affiches, je souhaitais donc calculer la moyenne de ces scores.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10 WhilePrintingRecords; global NumberVar SCORE_DECIDER := 0; if ({CNV_PUB_INTERACTION_RESP.RESPONSES}="1 Disagree") then (SCORE_DECIDER:=1; ) else if ({CNV_PUB_INTERACTION_RESP.RESPONSES}="2") then (SCORE_DECIDER:=2; ) else if ({CNV_PUB_INTERACTION_RESP.RESPONSES}="3") then (SCORE_DECIDER:=3; ) else if ({CNV_PUB_INTERACTION_RESP.RESPONSES}="4 Neutral") then (SCORE_DECIDER:=4; ) else if ({CNV_PUB_INTERACTION_RESP.RESPONSES}="5") then (SCORE_DECIDER:=5; ) else if ({CNV_PUB_INTERACTION_RESP.RESPONSES}="6") then (SCORE_DECIDER:=6; ) else if ({CNV_PUB_INTERACTION_RESP.RESPONSES}="7 Agree") then (SCORE_DECIDER:=7; )
Est-ce que cela est possible? Quelqu'un a t il une idee?
Merci beaucoup par avance.
Partager