I have a CR 10 report where I have created two NumberVars and need to add them together and can't figure out the code to do it. Here's what I have so far:
First NumberVar Formula Q1 -
WhilePrintingRecords;
If {GetSurveyReportValues;1.QuestionId} = 970 then
Shared NumberVar SE1 := Sum ({GetSurveyReportValues;1.ScorePoint}, {GetSurveyReportValues;1.QuestionText})
else
0
Second NumberVar Formula Q2 -
WhilePrintingRecords;
If {GetSurveyReportValues;1.QuestionId} = 971 then
Shared NumberVar SE2 :=Sum ({GetSurveyReportValues;1.ScorePoint},{GetSurveyReportValues;1.QuestionText})
else
0
I need to add the two SE1 and SE2 NumberVars together and assign that value to another NumberVar SE3.
First NumberVar Formula Q1 -
WhilePrintingRecords;
If {GetSurveyReportValues;1.QuestionId} = 970 then
Shared NumberVar SE1 := Sum ({GetSurveyReportValues;1.ScorePoint}, {GetSurveyReportValues;1.QuestionText})
else
0
Second NumberVar Formula Q2 -
WhilePrintingRecords;
If {GetSurveyReportValues;1.QuestionId} = 971 then
Shared NumberVar SE2 :=Sum ({GetSurveyReportValues;1.ScorePoint},{GetSurveyReportValues;1.QuestionText})
else
0
I need to add the two SE1 and SE2 NumberVars together and assign that value to another NumberVar SE3.