
Hi all,
i have set up a form with many question which the question will be depend on previous question(branching). most of the question answer will be "yes", "no" answer.
Is there a way for me to build a flow that will assist to calculate how many question with "yes" answer and put it on a column in sharepoint list?
i already try expression sum(if(response="yes",1,0),if(response2="yes",1,0).........) but it failed.
is there a way?
Thanks
Hi @Zrl,
I believe you can achieve this by using an add function and also including an equals operator.
Try this example. Replace the question ids by your question ids.
add(if(equals(outputs('Get_response_details')?['body/rc44b58908ce2400ea83023abedc7b24e'], 'Yes'), 1, 0), if(equals(outputs('Get_response_details')?['body/r9944752806574d43b8529d99ab9e51fe'], 'Yes'), 1, 0))