problems to sum variables

Discussions about CSEntry
Post Reply
PHINOJOSA
Posts: 45
Joined: April 16th, 2023, 10:31 pm

problems to sum variables

Post by PHINOJOSA »

Hello
I am making a form, where I must enter the number of students for each grade of education that goes from 1 to 5, and in each grade it asks for the number of sections and according to that I must enter the number of students, the problem is that in the end I don't The final sum gives me an error.

If you could help me I can add.

As a detail, for example, if a grade has 2 sections, I enter the number of students for the 2 sections and it goes to the next grade but I cannot add.

Please, i need your help

Thank you
Attachments
error_suma.jpg
error_suma.jpg (207.17 KiB) Viewed 1928 times
02_MUESTRA.rar
(14.82 KiB) Downloaded 83 times
Arjun Brti
Posts: 49
Joined: October 15th, 2020, 3:40 am

Re: problems to sum variables

Post by Arjun Brti »

Hi PHINOJOSA,

Your sum logic is not working because all other variable are skipped if there are <=15 section in each grade. You can use following logic,

PROC ADHESIVOS_MUESTRA_LEVEL
preproc
setproperty("SpecialValuesZero","Yes");

Thanks.
Attachments
Capture.PNG
Capture.PNG (26.6 KiB) Viewed 1893 times
PHINOJOSA
Posts: 45
Joined: April 16th, 2023, 10:31 pm

Re: problems to sum variables

Post by PHINOJOSA »

Dear Arjun Brti

Thank you very much for the solution that you have given me, the truth is that I am just starting with CSPro and there are many things to learn.

I already applied the suggested command and it works great. Maybe in the future I will turn to you for more help. Thank you so much

Atte.
Paul Hinojosa
Post Reply