I have an element with two option Yes or No. Yes = 1 and No =0 I want to create a custom calculation to be able to determine the percentage of Yes. I placed the following code in the custom calculation section in the split custom field.
PHP Sample:
return count($data) < 0 ? array_sum($data) / count($data) : 0;
Any help would be greatly appreciated
PHP Sample:
return count($data) < 0 ? array_sum($data) / count($data) : 0;
Any help would be greatly appreciated