AnsweredAssumed Answered

Puling values from the repeat to a calculation

Question asked by nadiguy on Apr 29, 2018
Latest reply on May 2, 2018 by nadiguy

Hi, we are trying to add a calculation that uses values from repeat records by pulling each one separately and dividing it by the sum of all.

For instance (inside the repeat):

Specie

Num of individuals

Specie 1

5

Specie 2

6

Specie 3

7

Total

18

This is a calculation that we would like to perform (outside the repeat):

(5/18*ln(5/18))+ (6/18*ln(6/18))+ (7/18*ln(7/18)).

Is it possible to accomplish with a current version of Survey123?

Thank you

Outcomes