Conditional summing element from a repeating group in CALC

Hi,

I have a form with a group and repeating subgroup. First I thought I'll just have to sum in the main group (CALC element) one element from all the repeatings, which is pretty straight forward:

$elementsum = array_sum($data['repeating_group_table___element_to_be_summed']);
return $elementsum;

Now it looks I'll have to sum this element only if other element in the same repetition has a certain value. Do you know how to do it?
 
Last edited:
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top