I'm trying to create a Survey123 report template that sums the values from three different number fields, but can't figure out how to do this. I can get the sum of each individual question, but not all three at once.
Each field asks the same question, but one for male, one for female and one for children. This code will give me the sum of all records for one field:
${#MySurvey | stats: “sum, male_interact, m_sum”} ${m_sum}${/}
But what I want is more like:
${#MySurvey | stats: “sum, (male_interact, female_interact, child_interact), mfc_sum”} ${mfc_sum}${/}
Is there a way to do this in a report? Thanks.